RecyclerView is cutting off the last item

前端 未结 19 2219
予麋鹿
予麋鹿 2020-12-02 18:47

I have a fragment with a toolbar and a recyclerView inside it.

I am populating the recyclerView with dummy data and then try to show them. For some reason, the last

19条回答
  •  春和景丽
    2020-12-02 19:06

    Try to change your RecyclerView height to "wrap_content" and add the AppBarLayout height as margin bottom.

    
    

    The cut-off part of the list item, is the height of the AppBarLayout.

提交回复
热议问题