RecyclerView is cutting off the last item

前端 未结 19 2267
予麋鹿
予麋鹿 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:07

    Set layout_height="match_parent" then add layout_marginBottom="?attr/actionBarSize" or 50dp this will compensate for the ToolBar forcing the RecyclerView down cutting off the last view.

    Additionally set nestedScrollingEnabled="false" if you have a hideOnScroll enabled toolbar.

    
    

提交回复
热议问题