1<merge xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 tools:context=".${activityClass}"> 4 5 <!-- Login progress --> 6 <LinearLayout android:id="@+id/login_status" 7 android:visibility="gone" 8 android:layout_width="wrap_content" 9 android:layout_height="wrap_content" 10 android:layout_gravity="center" 11 android:gravity="center_horizontal" 12 android:orientation="vertical"> 13 <ProgressBar style="?android:attr/progressBarStyleLarge" 14 android:layout_width="wrap_content" 15 android:layout_height="wrap_content" 16 android:layout_marginBottom="8dp"/> 17 <TextView 18 android:id="@+id/login_status_message" 19 android:textAppearance="?android:attr/textAppearanceMedium" 20 android:fontFamily="sans-serif-light" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" 23 android:layout_marginBottom="16dp" 24 android:text="@string/login_progress_signing_in" /> 25 </LinearLayout> 26 27 <!-- Login form --> 28 <ScrollView 29 android:id="@+id/login_form" 30 android:layout_width="match_parent" 31 android:layout_height="match_parent"> 32 33 <LinearLayout style="@style/LoginFormContainer" 34 android:orientation="vertical"> 35 36 <EditText 37 android:id="@+id/email" 38 android:singleLine="true" 39 android:maxLines="1" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:inputType="textEmailAddress" 43 android:hint="@string/prompt_email" /> 44 45 <EditText 46 android:id="@+id/password" 47 android:singleLine="true" 48 android:maxLines="1" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:hint="@string/prompt_password" 52 android:inputType="textPassword" 53 android:imeActionLabel="@string/action_sign_in_short" 54 android:imeActionId="@+id/login" 55 android:imeOptions="actionUnspecified" /> 56 57 <Button android:id="@+id/sign_in_button" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:layout_marginTop="16dp" 61 android:text="@string/action_sign_in_register" 62 android:paddingLeft="32dp" 63 android:paddingRight="32dp" 64 android:layout_gravity="right" /> 65 66 </LinearLayout> 67 68 </ScrollView> 69</merge> 70