item_left_img_url_layout.xml 3.86 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
<?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="请问是发生" />

47
            <androidx.cardview.widget.CardView
48 49
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
50 51 52 53 54 55 56 57 58 59
                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>
60 61 62 63

            <LinearLayout
                android:id="@+id/jump_url"
                android:layout_width="match_parent"
64 65
                android:layout_height="40dp"
                android:layout_marginTop="12dp"
66 67 68 69 70
                android:background="@drawable/bg_shape_1da1f2_r18"
                android:gravity="center"
                android:orientation="horizontal">

                <TextView
71
                    android:layout_marginBottom="1px"
72 73 74 75 76
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="点击前往"
                    android:textColor="@color/white"
77
                    android:textSize="16sp" />
78 79

                <ImageView
80 81 82
                    android:layout_marginTop="1px"
                    android:layout_width="14dp"
                    android:layout_height="14dp"
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
                    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>