How implement sticky footer in recyclerview

后端 未结 8 1764
时光说笑
时光说笑 2021-02-04 02:52

I have RecyclerView and I need next behavior:

  • if there are a lot of items (more then fits screen) - footer is last item
  • if few item/no item - footer is lo
8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 03:13

    If you cannot forget about RecyclerView and use ListView, then go check this link out Is there an addHeaderView equivalent for RecyclerView? it has everything you need. It's about header, but it's pretty much the same, except that header is in the beginning of your list and footer is in the end.

提交回复
热议问题