
Create activity layoutĮach cell in our RecyclerView grid is only going to have a single TextView. You can update the version numbers to whatever is the most current. Make sure the following dependencies are in your app gradle.build file: compile ':appcompat-v7:27.1.1'Ĭompile ':recyclerview-v7:27.1.1'

RecyclerView recyclerView = (RecyclerView) findViewById(R.id.rvNumbers) MyRecyclerViewAdapter.java public class MyRecyclerViewAdapter extends RecyclerView.Adapter The RecyclerView needs an adapter to populate the views in each cell with your data.


For those who are already familiar with setting up a RecyclerView to make a list, the good news is that making a grid is largely the same.
