aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/chat_item_reverse.xml
blob: b810219321c9289551b9944569dae5277cad7b0e (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:orientation="horizontal"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content">

	<LinearLayout
		android:layout_width="0dip"
		android:layout_height="wrap_content"
		android:layout_weight="1"
		android:orientation="vertical" >

		<LinearLayout
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginBottom="4dip"
			android:orientation="horizontal"
			android:layout_gravity="right" >

			<TextView
				android:id="@+id/chat_time"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginRight="6dip"
				android:singleLine="true"
				android:text="00:00"
				android:textAppearance="?android:attr/textAppearanceSmall" />

			<TextView
				android:id="@+id/chat_username"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginLeft="6dip"
				android:ellipsize="marquee"
				android:singleLine="true"
				android:text="User"
				android:textAppearance="?android:attr/textAppearanceLarge"
				android:textColor="?android:textColorSecondary"/>
		</LinearLayout>

		<TextView
			android:id="@+id/chat_message"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginLeft="6dip"
			android:layout_marginRight="6dip"
			android:autoLink="all"
			android:linksClickable="true"
			android:singleLine="false"
			android:text="Chat message"
			android:textAppearance="?android:attr/textAppearanceMedium"
			android:layout_gravity="right"/>
	</LinearLayout>

	<github.daneren2005.dsub.view.RecyclingImageView
		android:id="@+id/chat_avatar"
		android:src="@drawable/ic_social_person"
		android:layout_width="@dimen/AlbumArt.Small"
		android:layout_height="@dimen/AlbumArt.Small"
		android:layout_gravity="right|center_vertical"/>
</LinearLayout>