item_left_text_layout.xml 2.12 KB
Newer Older
刘鹏 committed
1 2 3 4 5 6
<?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"
刘鹏 committed
7
    android:padding="12dp">
刘鹏 committed
8 9 10 11 12 13 14 15 16 17

    <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" />

刘鹏 committed
18 19
    <LinearLayout
        android:layout_width="0dp"
刘鹏 committed
20
        android:layout_height="wrap_content"
刘鹏 committed
21 22
        android:gravity="left"
        android:orientation="vertical"
刘鹏 committed
23
        android:layout_marginLeft="8dp"
刘鹏 committed
24
        android:layout_marginRight="8dp"
刘鹏 committed
25
        app:layout_constraintBottom_toBottomOf="parent"
刘鹏 committed
26
        app:layout_constraintHorizontal_weight="1"
刘鹏 committed
27
        app:layout_constraintLeft_toRightOf="@id/iv_header"
刘鹏 committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41
        app:layout_constraintRight_toLeftOf="@id/iv_right"
        app:layout_constraintTop_toTopOf="parent">

        <TextView
            android:id="@+id/tv_left_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/im_custom_message_round_white_6dp_bg"
            android:padding="12dp"
            android:textColor="@color/im_color_242424"
            android:textSize="@dimen/im_text_size_17"
            app:layout_constraintHorizontal_weight="1"
            tools:text="你好,为了更好的帮助您我们需要了解些基本信息,我们将会严格保护你的隐私安全,请放心。" />
    </LinearLayout>
刘鹏 committed
42

刘鹏 committed
43 44 45 46 47 48 49
    <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" />
刘鹏 committed
50
</androidx.constraintlayout.widget.ConstraintLayout>