|
@@ -1,5 +1,5 @@
|
1
|
1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
3
|
android:layout_width="match_parent"
|
4
|
4
|
android:layout_height="@dimen/nav_header_height"
|
5
|
5
|
android:background="@drawable/side_nav_bar"
|
|
@@ -16,30 +16,52 @@
|
16
|
16
|
android:id="@+id/imageView"
|
17
|
17
|
android:layout_width="wrap_content"
|
18
|
18
|
android:layout_height="wrap_content"
|
19
|
|
- android:layout_marginTop="@dimen/nav_header_vertical_spacing"
|
20
|
|
- android:src="@mipmap/ic_launcher" />
|
|
19
|
+ android:src="@mipmap/ic_launcher"
|
|
20
|
+ android:layout_alignParentTop="true"
|
|
21
|
+ android:layout_alignParentLeft="true"
|
|
22
|
+ android:layout_alignParentStart="true"/>
|
21
|
23
|
|
22
|
24
|
<TextView
|
23
|
25
|
android:layout_width="match_parent"
|
24
|
26
|
android:layout_height="wrap_content"
|
25
|
|
- android:layout_marginTop="@dimen/nav_header_vertical_spacing"
|
26
|
27
|
android:id="@+id/textUserName"
|
27
|
28
|
tools:text="Android Studio"
|
28
|
29
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
29
|
|
- android:visibility="gone" />
|
|
30
|
+ android:layout_below="@+id/imageView"
|
|
31
|
+ android:layout_alignParentLeft="true"
|
|
32
|
+ android:layout_alignParentStart="true"
|
|
33
|
+ android:visibility="gone"/>
|
30
|
34
|
|
31
|
35
|
<TextView
|
32
|
36
|
android:id="@+id/textUserEmail"
|
33
|
37
|
android:layout_width="wrap_content"
|
34
|
38
|
android:layout_height="wrap_content"
|
35
|
39
|
tools:text="android.studio@android.com"
|
36
|
|
- android:visibility="gone" />
|
|
40
|
+ android:layout_below="@+id/textUserName"
|
|
41
|
+ android:layout_alignParentLeft="true"
|
|
42
|
+ android:layout_alignParentStart="true"
|
|
43
|
+ android:layout_alignParentRight="true"
|
|
44
|
+ android:layout_alignParentEnd="true"
|
|
45
|
+ android:visibility="gone"/>
|
|
46
|
+
|
37
|
47
|
|
38
|
48
|
<com.facebook.login.widget.LoginButton
|
39
|
49
|
android:id="@+id/btnLogin"
|
40
|
50
|
android:layout_width="wrap_content"
|
41
|
51
|
android:layout_height="wrap_content"
|
42
|
|
- android:layout_marginTop="@dimen/nav_header_vertical_spacing"
|
43
|
|
- android:layout_gravity="center_horizontal" />
|
|
52
|
+ android:layout_gravity="center_horizontal"
|
|
53
|
+ android:layout_below="@+id/imageView"
|
|
54
|
+ android:layout_centerHorizontal="true"/>
|
|
55
|
+
|
|
56
|
+ <TextView
|
|
57
|
+ android:id="@+id/text_help_message"
|
|
58
|
+ android:layout_width="match_parent"
|
|
59
|
+ android:layout_height="wrap_content"
|
|
60
|
+ android:textAppearance="?android:attr/textAppearanceListItemSmall"
|
|
61
|
+ android:text="@string/drawer_help_message"
|
|
62
|
+ android:gravity="center"
|
|
63
|
+ android:layout_below="@+id/btnLogin"
|
|
64
|
+ android:layout_alignParentLeft="true"
|
|
65
|
+ android:layout_alignParentStart="true"/>
|
44
|
66
|
|
45
|
|
-</LinearLayout>
|
|
67
|
+</RelativeLayout>
|