res/layout/activity_authenticator.xml

changeset 0
fb9019fb1bf7
child 8
ec8af0e3fbc2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/res/layout/activity_authenticator.xml	Tue Feb 10 18:12:00 2015 +0100
     1.3 @@ -0,0 +1,103 @@
     1.4 +<merge xmlns:android="http://schemas.android.com/apk/res/android"
     1.5 +    xmlns:tools="http://schemas.android.com/tools"
     1.6 +    tools:context=".AuthenticatorActivity" >
     1.7 +
     1.8 +    <!-- Login progress -->
     1.9 +
    1.10 +    <LinearLayout
    1.11 +        android:id="@+id/login_status"
    1.12 +        android:layout_width="wrap_content"
    1.13 +        android:layout_height="wrap_content"
    1.14 +        android:layout_gravity="center"
    1.15 +        android:gravity="center_horizontal"
    1.16 +        android:orientation="vertical"
    1.17 +        android:visibility="gone" >
    1.18 +
    1.19 +        <ProgressBar
    1.20 +            style="?android:attr/progressBarStyleLarge"
    1.21 +            android:layout_width="wrap_content"
    1.22 +            android:layout_height="wrap_content"
    1.23 +            android:layout_marginBottom="8dp" />
    1.24 +
    1.25 +        <TextView
    1.26 +            android:id="@+id/login_status_message"
    1.27 +            android:layout_width="wrap_content"
    1.28 +            android:layout_height="wrap_content"
    1.29 +            android:layout_marginBottom="16dp"
    1.30 +            android:fontFamily="sans-serif-light"
    1.31 +            android:text="@string/login_progress_signing_in"
    1.32 +            android:textAppearance="?android:attr/textAppearanceMedium" />
    1.33 +    </LinearLayout>
    1.34 +
    1.35 +    <!-- Login form -->
    1.36 +
    1.37 +    <ScrollView
    1.38 +        android:id="@+id/login_form"
    1.39 +        android:layout_width="match_parent"
    1.40 +        android:layout_height="match_parent" >
    1.41 +
    1.42 +        <LinearLayout
    1.43 +            style="@style/LoginFormContainer"
    1.44 +            android:orientation="vertical" >
    1.45 +
    1.46 +            <EditText
    1.47 +                android:id="@+id/user"
    1.48 +                android:layout_width="match_parent"
    1.49 +                android:layout_height="wrap_content"
    1.50 +                android:hint="@string/prompt_user"
    1.51 +                android:inputType="text"
    1.52 +                android:maxLines="1"
    1.53 +                android:singleLine="true" />
    1.54 +
    1.55 +            <EditText
    1.56 +                android:id="@+id/password"
    1.57 +                android:layout_width="match_parent"
    1.58 +                android:layout_height="wrap_content"
    1.59 +                android:hint="@string/prompt_password"
    1.60 +                android:imeActionId="@+id/login"
    1.61 +                android:imeActionLabel="@string/action_sign_in_short"
    1.62 +                android:imeOptions="actionUnspecified"
    1.63 +                android:inputType="textPassword"
    1.64 +                android:maxLines="1"
    1.65 +                android:singleLine="true" />
    1.66 +
    1.67 +            <EditText
    1.68 +                android:id="@+id/url"
    1.69 +                android:layout_width="match_parent"
    1.70 +                android:layout_height="wrap_content"
    1.71 +                android:ems="10"
    1.72 +                android:hint="@string/prompt_url"
    1.73 +                android:inputType="textUri" >
    1.74 +
    1.75 +                <requestFocus />
    1.76 +            </EditText>
    1.77 +
    1.78 +            <EditText
    1.79 +                android:id="@+id/accountname"
    1.80 +                android:layout_width="match_parent"
    1.81 +                android:layout_height="wrap_content"
    1.82 +                android:hint="@string/prompt_accountname"
    1.83 +                android:inputType="text"
    1.84 +                android:maxLines="1"
    1.85 +                android:singleLine="true" />
    1.86 +
    1.87 +            <Button
    1.88 +                android:id="@+id/sign_in_button"
    1.89 +                android:layout_width="wrap_content"
    1.90 +                android:layout_height="wrap_content"
    1.91 +                android:layout_gravity="right"
    1.92 +                android:layout_marginTop="16dp"
    1.93 +                android:paddingLeft="32dp"
    1.94 +                android:paddingRight="32dp"
    1.95 +                android:text="@string/action_sign_in_register" />
    1.96 +
    1.97 +            <TextView
    1.98 +                android:id="@+id/sign_in_note_accountname"
    1.99 +                android:layout_width="wrap_content"
   1.100 +                android:layout_height="wrap_content"
   1.101 +                android:text="@string/action_sign_in_note_accountname" />
   1.102 +
   1.103 +        </LinearLayout>
   1.104 +    </ScrollView>
   1.105 +
   1.106 +</merge>
   1.107 \ No newline at end of file

mercurial