修复直播聊天室抽搐问题
This commit is contained in:
parent
9f517199fe
commit
0b7a3cc50e
@ -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);
|
||||||
|
@ -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" />
|
||||||
|
Loading…
Reference in New Issue
Block a user