|
@@ -38,70 +38,48 @@
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_width="match_parent">
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:id="@+id/cl_left"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
+
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
+ android:id="@+id/left_user_icon_view"
|
|
|
+ android:layout_width="41dp"
|
|
|
+ android:layout_height="41dp"
|
|
|
+ android:layout_alignParentLeft="true"
|
|
|
+ android:layout_marginRight="6.23dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ android:scaleType="centerCrop"/>
|
|
|
+ <com.opensource.svgaplayer.SVGAImageView
|
|
|
+ android:id="@+id/svgAvatar_left"
|
|
|
+ android:layout_width="41dp"
|
|
|
+ android:layout_height="41dp"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:autoPlay="true"
|
|
|
+ app:loopCount="0"
|
|
|
android:layout_alignParentLeft="true"
|
|
|
- android:layout_marginRight="6.23dp">
|
|
|
- <de.hdodenhof.circleimageview.CircleImageView
|
|
|
- android:id="@+id/left_user_icon_view"
|
|
|
- android:layout_width="41dp"
|
|
|
- android:layout_height="41dp"
|
|
|
- android:visibility="gone"
|
|
|
- android:scaleType="centerCrop"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
- <com.opensource.svgaplayer.SVGAImageView
|
|
|
- android:id="@+id/svgAvatar_left"
|
|
|
- android:layout_width="41dp"
|
|
|
- android:layout_height="41dp"
|
|
|
- android:visibility="visible"
|
|
|
- app:autoPlay="true"
|
|
|
- app:loopCount="0"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+ android:layout_marginRight="6.23dp"/>
|
|
|
|
|
|
- <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
- android:id="@+id/cl_right"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
+ <de.hdodenhof.circleimageview.CircleImageView
|
|
|
+ android:id="@+id/right_user_icon_view"
|
|
|
+ android:layout_width="41dp"
|
|
|
+ android:layout_height="41dp"
|
|
|
android:layout_alignParentRight="true"
|
|
|
- android:layout_marginLeft="6.23dp">
|
|
|
- <de.hdodenhof.circleimageview.CircleImageView
|
|
|
- android:id="@+id/right_user_icon_view"
|
|
|
- android:layout_width="41dp"
|
|
|
- android:layout_height="41dp"
|
|
|
- android:scaleType="centerCrop"
|
|
|
- android:visibility="gone"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"/>
|
|
|
- <com.opensource.svgaplayer.SVGAImageView
|
|
|
- android:id="@+id/svgAvatar_right"
|
|
|
- android:layout_width="41dp"
|
|
|
- android:layout_height="41dp"
|
|
|
- android:visibility="visible"
|
|
|
- app:autoPlay="true"
|
|
|
- app:loopCount="0"
|
|
|
- app:layout_constraintStart_toStartOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
- app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
- </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
-
|
|
|
+ android:layout_marginLeft="6.23dp"
|
|
|
+ android:scaleType="centerCrop"
|
|
|
+ android:visibility="gone"/>
|
|
|
+ <com.opensource.svgaplayer.SVGAImageView
|
|
|
+ android:id="@+id/svgAvatar_right"
|
|
|
+ android:layout_width="41dp"
|
|
|
+ android:layout_height="41dp"
|
|
|
+ android:visibility="visible"
|
|
|
+ app:autoPlay="true"
|
|
|
+ app:loopCount="0"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_marginLeft="6.23dp"/>
|
|
|
<TextView
|
|
|
android:id="@+id/user_name_tv"
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_toLeftOf="@+id/cl_right"
|
|
|
- android:layout_toRightOf="@+id/cl_left"
|
|
|
+ android:layout_toLeftOf="@+id/right_user_icon_view"
|
|
|
+ android:layout_toRightOf="@+id/left_user_icon_view"
|
|
|
android:layout_marginBottom="3.68dp"
|
|
|
android:textColor="@color/text_tips_color"
|
|
|
android:layout_marginLeft="6.67dp"
|
|
@@ -113,8 +91,8 @@
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_below="@+id/user_name_tv"
|
|
|
- android:layout_toLeftOf="@+id/cl_right"
|
|
|
- android:layout_toRightOf="@+id/cl_left"
|
|
|
+ android:layout_toLeftOf="@+id/right_user_icon_view"
|
|
|
+ android:layout_toRightOf="@+id/left_user_icon_view"
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<com.tencent.qcloud.tim.uikit.component.UnreadCountTextView
|