Fragment won't display more than one item

后端 未结 1 459
醉酒成梦
醉酒成梦 2021-01-25 02:42

I have created an Android chat application which incorporates Firebase and created a fragment with a current users messages. The error occurs when a user sends a message to more

1条回答
  •  孤城傲影
    2021-01-25 02:47

    As I can see in your code, you are using an older version of the Firebase-UI library, in which because of a bug, you explicitly don't need to use fixed size. In order to display the data in your RecyclerView, please remove/comment the following line of code:

    convList.setHasFixedSize(true);
    

    Please see here more informations.

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