修复直播聊天室抽搐问题

This commit is contained in:
zlzw 2023-01-07 14:43:35 +08:00
parent 9f517199fe
commit 0b7a3cc50e
2 changed files with 2 additions and 2 deletions

View File

@ -874,7 +874,7 @@ 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.setStackFromEnd(true);
mChatRecyclerView.setLayoutManager(layoutManager); mChatRecyclerView.setLayoutManager(layoutManager);
mChatRecyclerView.addItemDecoration(new TopGradual()); mChatRecyclerView.addItemDecoration(new TopGradual());
mChatRecyclerView.setItemViewCacheSize(10); mChatRecyclerView.setItemViewCacheSize(10);

View File

@ -190,7 +190,7 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/chat_recyclerView" android:id="@+id/chat_recyclerView"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_marginTop="370dp" android:layout_marginTop="370dp"
android:overScrollMode="never" android:overScrollMode="never"
android:scrollbars="none" /> android:scrollbars="none" />