优化房间用户信息弹窗cp动画头像显示。
This commit is contained in:
@@ -552,14 +552,13 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
|||||||
case 0:
|
case 0:
|
||||||
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.bottomToTop = mBinding.topGuideline.getId();
|
||||||
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.HORIZONTAL);
|
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.HORIZONTAL);
|
||||||
mBinding.ivCp2.setPadding(10, 0, 0, 0);
|
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.VERTICAL);
|
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.VERTICAL);
|
||||||
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
params.topToTop = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.topToTop = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
mBinding.ivCp2.setPadding(0, 10, 0, 0);
|
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.VERTICAL);
|
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.VERTICAL);
|
||||||
@@ -576,6 +575,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
|||||||
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.HORIZONTAL);
|
mBinding.llCpAnimAvatar.setOrientation(LinearLayout.HORIZONTAL);
|
||||||
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.startToStart = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.endToEnd = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
|
params.topToBottom = mBinding.bottomGuideline.getId();
|
||||||
params.bottomToBottom = ConstraintLayout.LayoutParams.PARENT_ID;
|
params.bottomToBottom = ConstraintLayout.LayoutParams.PARENT_ID;
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
|
|||||||
@@ -272,6 +272,8 @@
|
|||||||
app:layout_constraintGuide_percent="0.54"
|
app:layout_constraintGuide_percent="0.54"
|
||||||
android:layout_height="0dp"/>
|
android:layout_height="0dp"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/rl_cp_anim"
|
android:id="@+id/rl_cp_anim"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@@ -282,6 +284,20 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="@+id/iv_avatar">
|
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
|
<com.xscm.moduleutil.widget.AvatarFrameView
|
||||||
android:id="@+id/cp_anim"
|
android:id="@+id/cp_anim"
|
||||||
android:layout_width="@dimen/dp_85"
|
android:layout_width="@dimen/dp_85"
|
||||||
|
|||||||
Reference in New Issue
Block a user