2024-06-27 19:41:15 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@color/white"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingBottom="@dimen/dp_8">
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/cl_user_info"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/dp_20"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/fl_avatar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
|
|
|
|
<com.chwl.app.common.widget.CircleImageView
|
|
|
|
android:id="@+id/iv_avatar"
|
|
|
|
android:layout_width="@dimen/dp_45"
|
|
|
|
android:layout_height="@dimen/dp_45"
|
|
|
|
android:layout_gravity="center" />
|
|
|
|
|
2024-07-04 15:19:11 +08:00
|
|
|
<com.chwl.library.widget.SVGAView
|
2024-06-27 19:41:15 +08:00
|
|
|
android:id="@+id/iv_head_wear"
|
|
|
|
android:layout_width="@dimen/dp_59"
|
|
|
|
android:layout_height="@dimen/dp_59"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<com.chwl.app.community.widget.DynamicNickDetailWidget
|
|
|
|
android:id="@+id/widget_nick_detail"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="@dimen/dp_5"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/fl_avatar"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/fl_avatar"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/fl_avatar" />
|
|
|
|
|
|
|
|
<com.chwl.app.community.widget.TopicLabelWidget
|
|
|
|
android:id="@+id/topicView"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/dp_9"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/widget_nick_detail" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/iv_in_room"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/ic_dy_square_in_room"
|
|
|
|
android:drawablePadding="@dimen/dp_2"
|
2024-06-28 10:56:03 +08:00
|
|
|
android:gravity="center"
|
2024-06-27 19:41:15 +08:00
|
|
|
android:paddingStart="@dimen/dp_8"
|
|
|
|
android:paddingEnd="0dp"
|
|
|
|
android:text="@string/room_in_live"
|
|
|
|
android:textColor="@color/color_9168FA"
|
|
|
|
android:textSize="@dimen/sp_10"
|
|
|
|
app:drawableStartCompat="@drawable/ic_square_live"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/widget_nick_detail"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/view_avatar_right"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginStart="56dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/cl_user_info"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/cl_user_info"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/cl_user_info" />
|
|
|
|
|
|
|
|
<com.chwl.app.community.widget.ExpandableTextView
|
|
|
|
android:id="@+id/etv_content"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/dp_10"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:animAlphaStart="1"
|
|
|
|
app:collapseIndicator="@string/collapse"
|
|
|
|
app:expandIndicator="@string/expand"
|
|
|
|
app:expandToggleOnTextClick="false"
|
|
|
|
app:expandToggleType="TextView"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/cl_user_info"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/view_avatar_right"
|
|
|
|
app:maxCollapsedLines="6">
|
|
|
|
|
|
|
|
<com.netease.nim.uikit.business.session.widget.NimEmojiTextView
|
|
|
|
android:id="@+id/expandable_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:lineSpacingExtra="4dp"
|
|
|
|
android:textColor="@color/text_normal_c6c6e9"
|
|
|
|
android:textSize="15sp" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/expand_collapse"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/expand"
|
|
|
|
android:textColor="@color/color_34A7FF"
|
|
|
|
android:textSize="15sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</com.chwl.app.community.widget.ExpandableTextView>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_time_publish"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="09:10"
|
|
|
|
android:textColor="@color/color_B3B3C3"
|
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/etv_content"
|
|
|
|
app:layout_goneMarginStart="0dp" />
|
|
|
|
|
|
|
|
<com.chwl.app.community.widget.GridImageWidget
|
|
|
|
android:id="@+id/widget_image"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/cl_user_info"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/tv_time_publish"
|
|
|
|
tools:layout_height="100dp" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/space_view"
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/cl_user_info"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/widget_image" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_mini_world_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxWidth="150dp"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:textColor="@color/color_1F1A4E"
|
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
|
android:drawablePadding="@dimen/dp_2"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/space_view"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/space_view"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/space_view"
|
|
|
|
tools:text="@string/layout_item_square_dynamic_01"
|
|
|
|
app:drawableStartCompat="@drawable/ic_topic" />
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/rl_option"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/dp_8"
|
|
|
|
android:layout_marginBottom="@dimen/dp_8"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/cl_user_info"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/space_view"
|
|
|
|
app:layout_goneMarginTop="@dimen/dp_8">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/ll_like"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/iv_like_pic"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:src="@drawable/icon_square_dynamic_like_normal" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_like"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="2.5dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textColor="@color/color_6D6B89"
|
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
|
tools:text="0123" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/ll_comment"
|
|
|
|
android:layout_width="60dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:layout_toEndOf="@id/ll_like"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingEnd="0dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/iv_comment_pic"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:src="@drawable/icon_square_dynamic_comment" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/tv_comment"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="2.5dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textColor="@color/color_6D6B89"
|
|
|
|
android:textSize="@dimen/sp_12"
|
|
|
|
tools:text="0" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/ll_share"
|
|
|
|
android:layout_width="50dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toEndOf="@id/ll_comment"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:paddingStart="@dimen/dp_5"
|
|
|
|
android:paddingEnd="0dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:src="@drawable/icon_square_dynamic_share" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/iv_more"
|
|
|
|
android:layout_width="22dp"
|
|
|
|
android:layout_height="22dp"
|
|
|
|
android:scaleType="centerInside"
|
|
|
|
android:src="@drawable/icon_square_dynamic_more"
|
|
|
|
android:layout_alignParentEnd="true"/>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|