How to set multiple layout in FirebaseRecyclerAdapter?

后端 未结 2 1563
半阙折子戏
半阙折子戏 2021-01-07 16:02

I just make a chat application with Firebase and using RecyclerView in XML and using FirebaseRecyclerAdapter in Android, but the problem is that when I send a message throug

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-07 16:24

    The FirebaseUI adapters were made for a homogenous lists with a single layout. While having heterogenous list with multiple layouts were always considered an interesting feature to add (see this original feature request), it hasn't been added so far.

    There is an open feature request for specifically adding multi-layout support on the FirebaseUI library: https://github.com/firebase/FirebaseUI-Android/issues/305.

    You might want to add your vote/+1 to that.

提交回复
热议问题