| 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 |
<#if includeGooglePlus> |
| 28 |
<LinearLayout |
| 29 |
android:layout_width="match_parent" |
| 30 |
android:layout_height="wrap_content" |
| 31 |
android:orientation="vertical"> |
| 32 |
|
| 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"/> |
| 38 |
|
| 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"> |
| 45 |
|
| 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"/> |
| 53 |
|
| 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"/> |
| 61 |
|
| 62 |
</LinearLayout> |
| 63 |
</#if> |
| 64 |
|
| 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"> |
| 70 |
|
| 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"/> |
| 79 |
|
| 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"/> |
| 91 |
|
| 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"/> |
| 100 |
|
| 101 |
</LinearLayout> |
| 102 |
<#if includeGooglePlus> |
| 103 |
</LinearLayout> |
| 104 |
</#if> |
| 105 |
</ScrollView> |
| 106 |
|
| 107 |
</LinearLayout> |
| 108 |
|