Created
August 28, 2015 13:26
-
-
Save survivingwithandroid/69eb2ed184ca65045cbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_my); | |
RecyclerView recList = (RecyclerView) findViewById(R.id.cardList); | |
recList.setHasFixedSize(true); | |
LinearLayoutManager llm = new LinearLayoutManager(this); | |
llm.setOrientation(LinearLayoutManager.VERTICAL); | |
recList.setLayoutManager(llm); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment