RecyclerView cutting off last item

前端 未结 7 896
孤街浪徒
孤街浪徒 2021-01-02 01:34

\"enter We can see here last item is partially visible. How can i fix this? layout.xml

7条回答
  •  粉色の甜心
    2021-01-02 01:59

    Easiest but not the best solution. Still works;

    Return +1 in the getItemCount() method of your RecyclerView.Adapter implementation and wrap your code in onBindViewHolder method override with a try-catch block.

提交回复
热议问题