-
Notifications
You must be signed in to change notification settings - Fork 0
/
users_single_layout.xml
58 lines (53 loc) · 2.19 KB
/
users_single_layout.xml
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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/user_single_image"
android:layout_width="64dp"
android:layout_height="64dp"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="12dp"
android:layout_marginTop="10dp"
android:src="@drawable/default_image" />
<TextView
android:id="@+id/user_single_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginEnd="40dp"
android:layout_marginRight="50dp"
android:layout_marginTop="16dp"
android:layout_toEndOf="@+id/user_single_image"
android:layout_toRightOf="@+id/user_single_image"
android:ellipsize="end"
android:maxLines="1"
android:text="Display Name"
android:textColor="@color/colorBlack"
android:textSize="19sp"
android:textStyle="normal" />
<TextView
android:id="@+id/user_single_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/user_single_name"
android:layout_alignStart="@+id/user_single_name"
android:layout_below="@+id/user_single_name"
android:layout_marginEnd="20dp"
android:layout_marginTop="2dp"
android:ellipsize="end"
android:maxLines="1"
android:text="@string/default_status"
android:textSize="16sp" />
<ImageView
android:id="@+id/user_single_online_icon"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginEnd="20dp"
android:visibility="invisible"
app:srcCompat="@drawable/online_icon" />
</RelativeLayout>