直播间聊天滚动问题

This commit is contained in:
18401019693 2022-11-30 18:50:14 +08:00
parent 1222aa9819
commit 4c5730d3bf

View File

@ -853,7 +853,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
layoutManager.setStackFromEnd(true);
mChatRecyclerView.setLayoutManager(layoutManager);
mChatRecyclerView.addItemDecoration(new TopGradual());
mChatRecyclerView.setItemViewCacheSize(8);
mChatRecyclerView.setItemViewCacheSize(10);
mLiveChatAdapter = new LiveChatAdapter(mContext);
mChatRecyclerView.setAdapter(mLiveChatAdapter);
mLiveChatAdapter.setOnItemClickListener(new OnItemClickListener<LiveChatBean>() {