im_ui_system_msg_item.xml 3.82 KB
Newer Older
YKai committed
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:orientation="vertical"
    android:padding="15dp">

    <TextView
        android:id="@+id/time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:background="@drawable/im_system_msg_time_bg"
        android:padding="3dp"
        android:textColor="@color/im_white"
        android:textSize="12sp"
        tools:text="123" />

    <RelativeLayout
        android:id="@+id/rela_body"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:background="@drawable/im_system_msg_bg">


        <ImageView
            android:id="@+id/banner"
            android:layout_width="match_parent"
            android:layout_height="150dp"
            android:contentDescription="@null"
            android:scaleType="centerCrop" />

        <TextView
            android:id="@+id/content"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignStart="@id/banner"
            android:layout_alignLeft="@id/banner"
            android:layout_alignEnd="@id/banner"
            android:layout_alignRight="@id/banner"
            android:layout_alignBottom="@+id/banner"
            android:background="@drawable/im_bg_system_msg_title"
            android:ellipsize="end"
            android:maxLines="2"
            android:paddingLeft="15dp"
            android:paddingTop="5dp"
            android:paddingRight="15dp"
            android:paddingBottom="15dp"
            android:textColor="@color/im_white"
            android:textSize="19sp"
            tools:text="终于等到你,"
            tools:textColor="@color/bg_black" />

        <LinearLayout
            android:id="@+id/ll_title"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/banner"
            android:orientation="vertical"
            android:visibility="gone">

            <TextView
                android:id="@+id/tv_title"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:ellipsize="end"
                android:maxLines="2"
                android:paddingLeft="5dp"
                android:paddingTop="15dp"
                android:paddingBottom="10dp"
                android:textColor="@color/bg_black"
                android:textSize="18sp"
                tools:text="终于等到你,"
                tools:textColor="@color/bg_black" />

            <View
                android:layout_width="match_parent"
                android:layout_height="0.5dp"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:background="#f0f0f0" />

            <com.ydl.ydlcommon.view.JumpTextView
                android:id="@+id/jump_detail"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                app:pa_jump_tv_left_color="#444444"
                app:pa_jump_tv_left_size="13sp"
                app:pa_jump_tv_left_text="查看详情"
                tools:visibility="visible" />

        </LinearLayout>


        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recycler_list"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/banner" />

    </RelativeLayout>

</LinearLayout>