1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 xmlns:tools="http://schemas.android.com/tools"
3 android:layout_width="match_parent"
4 android:layout_height="match_parent"
5 android:gravity="center_horizontal"
6 android:orientation="vertical"
7 android:paddingBottom="@dimen/activity_vertical_margin"
8 android:paddingLeft="@dimen/activity_horizontal_margin"
9 android:paddingRight="@dimen/activity_horizontal_margin"
10 android:paddingTop="@dimen/activity_vertical_margin"
11 tools:context="${relativePackage}.${activityClass}">
13 <!-- Login progress -->
15 android:id="@+id/login_progress"
16 style="?android:attr/progressBarStyleLarge"
17 android:layout_width="wrap_content"
18 android:layout_height="wrap_content"
19 android:layout_marginBottom="8dp"
20 android:visibility="gone"/>
23 android:id="@+id/login_form"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent"
27 <#if includeGooglePlus>
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:orientation="vertical">
33 <com.google.android.gms.common.SignInButton
34 android:id="@+id/plus_sign_in_button"
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content"
37 android:layout_marginBottom="32dp"/>
40 android:id="@+id/plus_sign_out_buttons"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:visibility="gone"
44 android:weightSum="2">
47 android:id="@+id/plus_sign_out_button"
48 style="?android:textAppearanceSmall"
49 android:layout_width="match_parent"
50 android:layout_height="match_parent"
51 android:layout_weight="1"
52 android:text="@string/plus_sign_out"/>
55 android:id="@+id/plus_disconnect_button"
56 style="?android:textAppearanceSmall"
57 android:layout_width="match_parent"
58 android:layout_height="match_parent"
59 android:layout_weight="1"
60 android:text="@string/plus_disconnect"/>
66 android:id="@+id/email_login_form"
67 android:layout_width="match_parent"
68 android:layout_height="wrap_content"
69 android:orientation="vertical">
72 android:id="@+id/email"
73 android:layout_width="match_parent"
74 android:layout_height="wrap_content"
75 android:hint="@string/prompt_email"
76 android:inputType="textEmailAddress"
78 android:singleLine="true"/>
81 android:id="@+id/password"
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:hint="@string/prompt_password"
85 android:imeActionId="@+id/login"
86 android:imeActionLabel="@string/action_sign_in_short"
87 android:imeOptions="actionUnspecified"
88 android:inputType="textPassword"
90 android:singleLine="true"/>
93 android:id="@+id/email_sign_in_button"
94 style="?android:textAppearanceSmall"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:layout_marginTop="16dp"
98 android:text="@string/action_sign_in"
99 android:textStyle="bold"/>
102 <#if includeGooglePlus>