Hello! Can you please tell me how to fix the very first (0) line in RecyclerView? There is the simplest List of elements, it is necessary that the very first element of the collection always remains visible, regardless of scrolling.

  • A similar problem is solved here . Either use Listview , or update the layout as described here - androschuk
  • There, ListView is used everywhere, and the variant with the output of the header from RecyclerView is, as for me, that one crutch - Alexander Makarov
  • Take a look at stackoverflow.com/questions/32949971/… ... - McDaggen
  • one
    Well, make your title a separate view, and under it your recycler is ermak0ff
  • I did, I did not find another option. - Alexander Makarov

1 answer 1

The easiest way to solve this problem is to make the header from RecyclerView. The second option is more complicated and in this case it does not make sense to create so-called "Sticky" headers.