1月28日 layout_list_item

Posted on 2021-01-28 13:26  ***Pepsi***  阅读(13)  评论(0编辑  收藏  举报

layout_list_item

 1 <?xml version="1.0" encoding="utf-8"?>
 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     android:layout_width="match_parent"
 4     android:layout_height="match_parent"
 5     android:orientation="horizontal"
 6     android:paddingRight="15dp"
 7     android:paddingLeft="15dp"
 8     android:paddingTop="10dp"
 9     android:paddingBottom="10dp">
10 
11    <ImageView
12        android:id="@+id/iv"
13        android:layout_width="100dp"
14        android:layout_height="100dp"
15        android:scaleType="centerCrop"
16        android:background="#000"
17        />
18     <LinearLayout
19         android:layout_width="match_parent"
20         android:layout_height="match_parent"
21         android:orientation="vertical"
22         android:paddingLeft="10dp">
23         <TextView
24             android:id="@+id/tv_title"
25             android:layout_width="wrap_content"
26             android:layout_height="wrap_content"
27             android:text="你好"
28             android:textSize="20sp"
29             android:textColor="@color/colorBlack"/>
30         <TextView
31             android:id="@+id/tv_time"
32             android:layout_width="wrap_content"
33             android:layout_height="wrap_content"
34             android:text="宁夏回族自治区"
35             android:layout_marginTop="8dp"
36             android:textSize="20sp"
37             android:textColor="@color/colorGrayDark"/>
38         <TextView
39             android:id="@+id/tv_content"
40             android:layout_width="wrap_content"
41             android:layout_height="wrap_content"
42             android:text="青铜峡市"
43             android:layout_marginTop="8dp"
44             android:textSize="20sp"
45             android:textColor="@color/colorGrayDark"/>
46     </LinearLayout>
47 </LinearLayout>

 

Copyright © 2024 ***Pepsi***
Powered by .NET 8.0 on Kubernetes