Last active
August 29, 2015 14:23
-
-
Save andersonleite/30595531cbe17443ba69 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
public class MainActivity extends ActionBarActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycler_view); | |
recyclerView.setLayoutManager(new GridLayoutManager(this, 3)); | |
recyclerView.setAdapter(new GridLettersAdapter()); | |
recyclerView.setHasFixedSize(true); | |
recyclerView.addItemDecoration(new GridDecoration(this)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment