Debian Codegraph @

templates/activities/LoginActivity/root/res/layout/activity_login.xml.ftl

raw
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}">
12
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"/>
21
22 <ScrollView
23 android:id="@+id/login_form"
24 android:layout_width="match_parent"
25 android:layout_height="match_parent">
26
27 <LinearLayout
28 android:id="@+id/email_login_form"
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:orientation="vertical">
32
33 <#if (buildApi gte 22) && appCompat>
34 <android.support.design.widget.TextInputLayout
35 android:layout_width="match_parent"
36 android:layout_height="wrap_content">
37
38 </#if>
39 <AutoCompleteTextView
40 android:id="@+id/email"
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:hint="@string/prompt_email"
44 android:inputType="textEmailAddress"
45 android:maxLines="1"
46 android:singleLine="true"/>
47
48 <#if (buildApi gte 22) && appCompat>
49 </android.support.design.widget.TextInputLayout>
50
51 <android.support.design.widget.TextInputLayout
52 android:layout_width="match_parent"
53 android:layout_height="wrap_content">
54
55 </#if>
56 <EditText
57 android:id="@+id/password"
58 android:layout_width="match_parent"
59 android:layout_height="wrap_content"
60 android:hint="@string/prompt_password"
61 android:imeActionId="@+id/login"
62 android:imeActionLabel="@string/action_sign_in_short"
63 android:imeOptions="actionUnspecified"
64 android:inputType="textPassword"
65 android:maxLines="1"
66 android:singleLine="true"/>
67
68 <#if (buildApi gte 22) && appCompat>
69 </android.support.design.widget.TextInputLayout>
70
71 </#if>
72 <Button
73 android:id="@+id/email_sign_in_button"
74 style="?android:textAppearanceSmall"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:layout_marginTop="16dp"
78 android:text="@string/action_sign_in"
79 android:textStyle="bold"/>
80
81 </LinearLayout>
82 </ScrollView>
83 </LinearLayout>