<?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:padding="12dp"> <ImageView android:id="@+id/iv_header" android:layout_width="36dp" android:layout_height="36dp" android:layout_centerVertical="true" android:src="@drawable/im_ico_default_avatar" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> <LinearLayout android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:orientation="vertical" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintHorizontal_weight="1" app:layout_constraintLeft_toRightOf="@id/iv_header" app:layout_constraintRight_toLeftOf="@id/iv_right" app:layout_constraintTop_toTopOf="parent"> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/im_custom_message_round_white_6dp_bg" android:orientation="vertical" android:padding="12dp"> <TextView android:id="@+id/multiple_type7_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/im_color_242424" android:textSize="@dimen/im_text_size_17" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" tools:text="请问是发生" /> <androidx.cardview.widget.CardView android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="12dp" android:elevation="0dp" app:cardCornerRadius="8dp" app:cardElevation="0dp"> <ImageView android:id="@+id/image" android:layout_width="match_parent" android:layout_height="wrap_content" /> </androidx.cardview.widget.CardView> <LinearLayout android:id="@+id/jump_url" android:layout_width="match_parent" android:layout_height="40dp" android:layout_marginTop="12dp" android:background="@drawable/bg_shape_1da1f2_r18" android:gravity="center" android:orientation="horizontal"> <TextView android:layout_marginBottom="1px" android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:text="点击前往" android:textColor="@color/white" android:textSize="16sp" /> <ImageView android:layout_marginTop="1px" android:layout_width="14dp" android:layout_height="14dp" android:layout_marginLeft="4dp" android:src="@drawable/ic_arrow_right" /> </LinearLayout> </LinearLayout> </LinearLayout> <View android:id="@+id/iv_right" android:layout_width="36dp" android:layout_height="36dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintRight_toRightOf="parent" app:layout_constraintTop_toTopOf="parent" /> </androidx.constraintlayout.widget.ConstraintLayout>