优化房间用户信息弹窗cp动画头像显示。

This commit is contained in:
2025-11-20 16:34:06 +08:00
parent db79bafdbc
commit 117ee41ff2
2 changed files with 18 additions and 2 deletions

View File

@@ -552,14 +552,13 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
case 0:
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
params.bottomToTop = mBinding.topGuideline.getId();
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.HORIZONTAL);
mBinding.ivCp2.setPadding(10, 0, 0, 0);
break;
case 1:
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.VERTICAL);
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
params.topToTop = ConstraintLayout.LayoutParams.PARENT_ID;
mBinding.ivCp2.setPadding(0, 10, 0, 0);
break;
case 2:
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.VERTICAL);
@@ -576,6 +575,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.HORIZONTAL);
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
params.topToBottom = mBinding.bottomGuideline.getId();
params.bottomToBottom = ConstraintLayout.LayoutParams.PARENT_ID;
break;
case 5: