Administrator
2021-11-06 c637891132d876b13edd8bc1e9ce4d63312fe091
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@drawable/bg_white_corner"
    android:layout_margin="@dimen/activity_horizontal_margin"
    android:padding="@dimen/activity_horizontal_margin"
    android:elevation="@dimen/small_radios"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
 
 
    <ImageView
        android:id="@+id/image_avatar"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:layout_gravity="center_vertical"
        android:layout_marginRight="@dimen/frame_margin_lr"
        tools:srcCompat="@tools:sample/avatars" />
 
    <TextView
        android:id="@+id/text_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="名称"
        android:layout_toRightOf="@id/image_avatar"
        android:textSize="16sp"
        android:textStyle="bold"
        android:layout_marginRight="@dimen/frame_margin_lr"
        android:textColor="@color/black" />
 
    <TextView
        android:id="@+id/text_sex"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@drawable/bg_trans_red_circle"
        android:textColor="@color/red"
        android:paddingLeft="@dimen/frame_margin_lr"
        android:paddingRight="@dimen/frame_margin_lr"
        android:paddingTop="2dp"
        android:paddingBottom="3dp"
        android:text="性别"
        android:textSize="10sp"
        android:layout_toRightOf="@id/text_name"/>
    <TextView
        android:id="@+id/text_time"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="2020-02-02"
        android:layout_alignBottom="@id/image_avatar"
        android:layout_alignStart="@id/text_name"
        android:textColor="@color/deep_gray" />
 
    <ImageView
        android:id="@+id/image_more"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:src="@drawable/ic_baseline_more_vert_24" />
 
 
    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/recycler"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:overScrollMode="never"
        android:layout_below="@id/image_avatar"
        android:layout_marginTop="@dimen/frame_margin_lr"
        app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
        tools:listitem="@layout/item_square"
        tools:itemCount="9"
        app:spanCount="3" />
 
    <TextView
        android:id="@+id/text_desc"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:maxLines="3"
        android:textColor="@color/black_4"
        android:ellipsize="end"
        android:layout_below="@id/recycler"
        android:layout_marginTop="@dimen/frame_margin_lr"
        android:text="描述" />
 
 
 
    <ImageView
        android:id="@+id/check_like"
        android:src="@android:drawable/btn_star_big_on"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/text_desc" />
 
    <ImageView
        android:id="@+id/comment"
        android:src="@android:drawable/btn_star_big_on"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/text_desc"
        android:layout_alignParentRight="true" />
 
</RelativeLayout>