修改直播间聊天列表

This commit is contained in:
18401019693 2023-01-07 15:19:33 +08:00
parent 112bec58df
commit 4bb51506e3

View File

@ -878,7 +878,9 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
mChatRecyclerView.setHasFixedSize(true); mChatRecyclerView.setHasFixedSize(true);
LinearLayoutManager layoutManager = new LiveChatRecyclerViewLayoutManager(mContext); LinearLayoutManager layoutManager = new LiveChatRecyclerViewLayoutManager(mContext);
//layoutManager.setStackFromEnd(true); layoutManager.setOrientation(RecyclerView.VERTICAL);
layoutManager.setReverseLayout(false);
layoutManager.setStackFromEnd(true);
mChatRecyclerView.setLayoutManager(layoutManager); mChatRecyclerView.setLayoutManager(layoutManager);
mChatRecyclerView.addItemDecoration(new TopGradual()); mChatRecyclerView.addItemDecoration(new TopGradual());
mChatRecyclerView.setItemViewCacheSize(10); mChatRecyclerView.setItemViewCacheSize(10);