aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/chat_item.xml
blob: f31f7988c4b44fb85bfad1a6e8e188b2ad25e3f2 (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">

	<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="left|center_vertical"/>

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

		<LinearLayout
			android:id="@+id/chat_message_layout"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:layout_marginBottom="4dip"
			android:orientation="horizontal" >

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

			<TextView
				android:id="@+id/chat_time"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginLeft="6dip"
				android:singleLine="true"
				android:text="00:00"
				android:textAppearance="?android:attr/textAppearanceSmall" />
		</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="Message Text Goes Here"
			android:textAppearance="?android:attr/textAppearanceMedium" />
	</LinearLayout>
</LinearLayout>