Roll NDK to pick std::deque patch.
[android_tools.git] / sdk / tools / templates / activities / LoginActivity / root / res / layout / activity_login.xml.ftl
blob45143f5f5091441773eecaa5549ef2bda99b5d39
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 -->
14     <ProgressBar
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"/>
22     <ScrollView
23         android:id="@+id/login_form"
24         android:layout_width="match_parent"
25         android:layout_height="match_parent"
26         >
27 <#if includeGooglePlus>
28         <LinearLayout
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"/>
39             <LinearLayout
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">
46                 <Button
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"/>
54                 <Button
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"/>
62             </LinearLayout>
63 </#if>
65             <LinearLayout
66                 android:id="@+id/email_login_form"
67                 android:layout_width="match_parent"
68                 android:layout_height="wrap_content"
69                 android:orientation="vertical">
71                 <AutoCompleteTextView
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"
77                     android:maxLines="1"
78                     android:singleLine="true"/>
80                 <EditText
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"
89                     android:maxLines="1"
90                     android:singleLine="true"/>
92                 <Button
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"/>
101             </LinearLayout>
102 <#if includeGooglePlus>
103         </LinearLayout>
104 </#if>
105     </ScrollView>
107 </LinearLayout>