优化房间用户信息弹窗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:

View File

@@ -272,6 +272,8 @@
app:layout_constraintGuide_percent="0.54"
android:layout_height="0dp"/>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/rl_cp_anim"
android:layout_width="0dp"
@@ -282,6 +284,20 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/iv_avatar">
<androidx.constraintlayout.widget.Guideline
android:id="@+id/top_guideline"
android:layout_width="@dimen/dp_1"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.22"
android:layout_height="0dp"/>
<androidx.constraintlayout.widget.Guideline
android:id="@+id/bottom_guideline"
android:layout_width="@dimen/dp_1"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.65"
android:layout_height="0dp"/>
<com.xscm.moduleutil.widget.AvatarFrameView
android:id="@+id/cp_anim"
android:layout_width="@dimen/dp_85"