63 lines
2.1 KiB
XML
63 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="5dp">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/text_16"
|
|
tools:text="通知公告" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="5dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_state"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight=".3"
|
|
android:textSize="@dimen/text_12"
|
|
tools:text="类型" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_time"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="10dp"
|
|
android:layout_weight=".5"
|
|
android:gravity="right"
|
|
android:textSize="@dimen/text_12"
|
|
tools:text="2022-12-12 12:12:12" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="12dp"
|
|
android:layout_height="12dp"
|
|
android:src="@drawable/ic_read_num_hint" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_num"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="3dp"
|
|
android:textSize="@dimen/text_12"
|
|
tools:text="999" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout> |