-
Notifications
You must be signed in to change notification settings - Fork 0
/
message_single_layout.xml
55 lines (49 loc) · 1.95 KB
/
message_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
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/message_single_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:weightSum="10">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/message_profile_layout"
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_alignBottom="@+id/message_text_layout"
android:layout_alignParentStart="true"
android:src="@drawable/default_image" />
<TextView
android:id="@+id/message_text_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/name_text_layout"
android:layout_marginLeft="10dp"
android:layout_toEndOf="@+id/message_profile_layout"
android:padding="0dp"
android:text="Message Text"
android:textColor="#444444"
android:textSize="14sp" />
<TextView
android:id="@+id/name_text_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_marginLeft="10dp"
android:layout_toEndOf="@+id/message_profile_layout"
android:text="Display Name"
android:textColor="@android:color/black"
android:textSize="15sp"
android:textStyle="bold" />
<ImageView
android:id="@+id/message_image_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_alignStart="@+id/message_text_layout"
android:layout_below="@+id/message_text_layout"
android:layout_marginLeft="0dp"
android:layout_toEndOf="@+id/message_profile_layout"
android:padding="0dp" />
</RelativeLayout>