showing RecyclerView on fragment with data from Firebase

前端 未结 1 978
遇见更好的自我
遇见更好的自我 2020-12-11 05:18

I\'m having a problem with making a RecycleView in a fragment with data from Firebase. I expect the app to show the RecycleView after I clicked on

相关标签:
1条回答
  • 2020-12-11 06:00

    The problem in your code is the use of the following line of code:

    recyclerView.setHasFixedSize(true);
    

    And this is because when using the latest version of Firebase-UI library, there is no need to set the size of the RecyclerView as fixed. The solution for solving this problem is to simply remove/comment the above line of code. That's it!

    0 讨论(0)
提交回复
热议问题