aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/drawer_header.xml
blob: fe0a9f2d885ac92c75f0deabf911fac14369e5f8 (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
62
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
	android:layout_width="match_parent"
	android:layout_height="178dp"
	android:orientation="vertical"
	android:weightSum="1"
	android:background="?attr/selectableItemBackground">

	<LinearLayout
		android:layout_width="match_parent"
		android:layout_height="56dp"
		android:orientation="horizontal"
		android:layout_alignParentBottom="true"
		android:layout_alignParentLeft="true"
		android:layout_alignParentStart="true">

		<LinearLayout
			android:orientation="vertical"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content">

			<TextView
				android:id="@+id/header_server_name"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginLeft="16dp"
				android:textColor="?android:textColorPrimary"
				android:textSize="14sp"
				android:textStyle="bold"/>

			<TextView
				android:id="@+id/header_user_name"
				android:layout_width="wrap_content"
				android:layout_height="wrap_content"
				android:layout_marginLeft="16dp"
				android:layout_marginTop="5dp"
				android:textColor="?android:textColorSecondary"
				android:textSize="14sp"
				android:textStyle="normal"/>
		</LinearLayout>

		<View
			android:layout_width="0dp"
			android:layout_height="0dp"
			android:layout_weight="1"/>

		<ImageView
			android:id="@+id/header_select_image"
			android:src="?attr/select_server"
			android:layout_gravity="center_vertical"
			android:layout_width="wrap_content"
			android:layout_height="wrap_content"
			android:paddingRight="20dp"/>
	</LinearLayout>

	<de.hdodenhof.circleimageview.CircleImageView
		android:id="@+id/header_user_avatar"
		android:layout_width="70dp"
		android:layout_height="70dp"
		android:layout_marginLeft="16dp"
		android:layout_marginTop="38dp"/>
</RelativeLayout>