<?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:paddingLeft="12dp" android:paddingTop="12dp" android:paddingBottom="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_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/tv_left_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:background="@drawable/im_custom_message_round_white_6dp_bg" android:maxWidth="270dp" android:padding="12dp" android:lineSpacingMultiplier="1.2" android:textColor="@color/im_color_242424" android:textSize="@dimen/im_text_size_17" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toRightOf="@id/iv_header" app:layout_constraintTop_toTopOf="parent" tools:text="你好,为了更好的帮助您我们需要了解些基本信息,我们将会严格保护你的隐私安全,请放心。" /> </androidx.constraintlayout.widget.ConstraintLayout>