aboutsummaryrefslogtreecommitdiff
path: root/res/layout/user_header.xml
blob: 0b303afebd1be59dcf49ce602606eeccd887f986 (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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:id="@+id/select_album_header"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content">
		
	<github.daneren2005.dsub.view.RecyclingImageView
		android:id="@+id/user_avatar"
		android:src="@drawable/ic_social_person"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_alignParentTop="true"
		android:layout_alignParentLeft="true"
		android:layout_marginRight="10dip"
		android:scaleType="fitCenter"
		android:contentDescription="@null"/>

	<LinearLayout
		android:layout_width="fill_parent"
		android:layout_height="wrap_content"
		android:layout_toRightOf="@+id/user_avatar"
		android:orientation="vertical"
		android:layout_centerVertical="true">

		<TextView
			android:text="Username"
			android:id="@+id/user_username"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textAppearance="?android:attr/textAppearanceLarge"
			android:textStyle="bold"
			android:singleLine="true"
			android:ellipsize="marquee"
			android:marqueeRepeatLimit="marquee_forever"
			android:scrollHorizontally="true"
			android:focusable="true"
			android:focusableInTouchMode="true">

			<requestFocus android:focusable="true"
				android:focusableInTouchMode="true"
				android:duplicateParentState="true" />
		</TextView>

		<TextView
			android:text="Email"
			android:id="@+id/user_email"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:textAppearance="?android:attr/textAppearanceMedium"
			android:singleLine="true"
			android:ellipsize="end"
			android:autoLink="email"/>

	</LinearLayout>
</RelativeLayout>