RecyclerView is cutting off the last item

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

    I was having the same problem, After searching lot i found out that My parent view holding the recycleView was not properly constrained as i was using constraintLayout,

    my view hierarchy was like

    constraintLayout->pageViewer with tab->fragment->recyclerView
    

    In my case pageViewer was not constrained properly

    to solve this please check weather the parent is properly aliened or constrained

提交回复
热议问题