首页顶部推荐房间RV增加setHasFixedSize(true)
This commit is contained in:
@@ -520,6 +520,7 @@ public class GameHomeFragment extends BaseMvpFragment<IMainFragmentView, MainFra
|
||||
*/
|
||||
private void initRoomConcern() {
|
||||
mFollowRoomsAdapter = new HomeConcernsAdapter(null, mContext);
|
||||
mBinding.rvFollowRoom.setHasFixedSize(true);
|
||||
mBinding.rvFollowRoom.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
|
||||
mBinding.rvFollowRoom.addItemDecoration(new VerticalDecoration(SizeUtils.dp2px(mContext, 10), false, true));
|
||||
mFollowRoomsAdapter.setOnItemClickListener((adapter, view, position) -> {
|
||||
|
Reference in New Issue
Block a user