res/layout/activity_authenticator.xml

Tue, 10 Feb 2015 22:40:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 10 Feb 2015 22:40:00 +0100
changeset 8
ec8af0e3fbc2
parent 0
fb9019fb1bf7
child 9
bcc778a42b8c
permissions
-rw-r--r--

Merge https://github.com/gggard/AndroidCaldavSyncAdapater/pull/206/

     1 <merge xmlns:android="http://schemas.android.com/apk/res/android"
     2     xmlns:tools="http://schemas.android.com/tools"
     3     tools:context=".AuthenticatorActivity" >
     5     <!-- Login progress -->
     7     <LinearLayout
     8         android:id="@+id/login_status"
     9         android:layout_width="wrap_content"
    10         android:layout_height="wrap_content"
    11         android:layout_gravity="center"
    12         android:gravity="center_horizontal"
    13         android:orientation="vertical"
    14         android:visibility="gone" >
    16         <ProgressBar
    17             style="?android:attr/progressBarStyleLarge"
    18             android:layout_width="wrap_content"
    19             android:layout_height="wrap_content"
    20             android:layout_marginBottom="8dp" />
    22         <TextView
    23             android:id="@+id/login_status_message"
    24             android:layout_width="wrap_content"
    25             android:layout_height="wrap_content"
    26             android:layout_marginBottom="16dp"
    27             android:fontFamily="sans-serif-light"
    28             android:text="@string/login_progress_signing_in"
    29             android:textAppearance="?android:attr/textAppearanceMedium" />
    30     </LinearLayout>
    32     <!-- Login form -->
    34     <ScrollView
    35         android:id="@+id/login_form"
    36         android:layout_width="match_parent"
    37         android:layout_height="match_parent" >
    39         <LinearLayout
    40             style="@style/LoginFormContainer"
    41             android:orientation="vertical" >
    43             <EditText
    44                 android:id="@+id/user"
    45                 android:layout_width="match_parent"
    46                 android:layout_height="wrap_content"
    47                 android:hint="@string/prompt_user"
    48                 android:inputType="text"
    49                 android:maxLines="1"
    50                 android:singleLine="true" />
    52             <EditText
    53                 android:id="@+id/password"
    54                 android:layout_width="match_parent"
    55                 android:layout_height="wrap_content"
    56                 android:hint="@string/prompt_password"
    57                 android:imeActionId="@+id/login"
    58                 android:imeActionLabel="@string/action_sign_in_short"
    59                 android:imeOptions="actionUnspecified"
    60                 android:inputType="textPassword"
    61                 android:maxLines="1"
    62                 android:singleLine="true" />
    64             <EditText
    65                 android:id="@+id/url"
    66                 android:layout_width="match_parent"
    67                 android:layout_height="wrap_content"
    68                 android:ems="10"
    69                 android:hint="@string/prompt_url"
    70                 android:inputType="textUri" >
    72                 <requestFocus />
    73             </EditText>
    75     		<CheckBox
    76     		    android:id="@+id/trustall"
    77     		    android:layout_width="wrap_content"
    78     		    android:layout_height="wrap_content"
    79     		    android:checked="true"
    80     		    android:text="@string/trustall"
    81     		    android:visibility="gone" />
    83             <EditText
    84                 android:id="@+id/accountname"
    85                 android:layout_width="match_parent"
    86                 android:layout_height="wrap_content"
    87                 android:hint="@string/prompt_accountname"
    88                 android:inputType="text"
    89                 android:maxLines="1"
    90                 android:singleLine="true" />
    92             <Button
    93                 android:id="@+id/sign_in_button"
    94                 android:layout_width="wrap_content"
    95                 android:layout_height="wrap_content"
    96                 android:layout_gravity="right"
    97                 android:layout_marginTop="16dp"
    98                 android:paddingLeft="32dp"
    99                 android:paddingRight="32dp"
   100                 android:text="@string/action_sign_in_register" />
   102             <TextView
   103                 android:id="@+id/sign_in_note_accountname"
   104                 android:layout_width="wrap_content"
   105                 android:layout_height="wrap_content"
   106                 android:text="@string/action_sign_in_note_accountname" />
   108         </LinearLayout>
   109     </ScrollView>
   111 </merge>

mercurial