Simple Android RecyclerView example

I’ve made a list of items a few times using Android’s RecyclerView, but it is a rather complicated process. Going through one of the numerous tutorials online works (this, this, and this are good), but I am looking a bare bones example that I can copy and paste to get up and running quickly. Only the following features are necessary:

  • Vertical layout
  • A single TextView on each row
  • Responds to click events

Because I have wished for this several times, I finally decided to make the answer below for my future reference and yours.

12 Answers
12

Leave a Comment