58 lines
2.1 KiB
XML
58 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:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="4dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/new_pic"
|
|
android:layout_width="64dp"
|
|
android:layout_height="64dp"
|
|
android:src="@mipmap/ic_launcher"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1.5"
|
|
android:orientation="horizontal">
|
|
<TextView
|
|
android:id="@+id/new_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Title"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="center"
|
|
android:textSize="20sp"/>
|
|
<TextView
|
|
android:id="@+id/new_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="2019-12-28 12:46:00"
|
|
android:layout_gravity="center"
|
|
android:textSize="13sp"/>
|
|
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/new_desc"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="desc"
|
|
android:layout_weight="1"
|
|
android:textSize="15sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/new_content"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="content"
|
|
android:visibility="gone"/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |