res/layout/activity_authenticator.xml

Tue, 10 Feb 2015 18:12:00 +0100

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

Import initial revisions of existing project AndroidCaldavSyncAdapater,
forked from upstream repository at 27e8a0f8495c92e0780d450bdf0c7cec77a03a55.

     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             <EditText
    76                 android:id="@+id/accountname"
    77                 android:layout_width="match_parent"
    78                 android:layout_height="wrap_content"
    79                 android:hint="@string/prompt_accountname"
    80                 android:inputType="text"
    81                 android:maxLines="1"
    82                 android:singleLine="true" />
    84             <Button
    85                 android:id="@+id/sign_in_button"
    86                 android:layout_width="wrap_content"
    87                 android:layout_height="wrap_content"
    88                 android:layout_gravity="right"
    89                 android:layout_marginTop="16dp"
    90                 android:paddingLeft="32dp"
    91                 android:paddingRight="32dp"
    92                 android:text="@string/action_sign_in_register" />
    94             <TextView
    95                 android:id="@+id/sign_in_note_accountname"
    96                 android:layout_width="wrap_content"
    97                 android:layout_height="wrap_content"
    98                 android:text="@string/action_sign_in_note_accountname" />
   100         </LinearLayout>
   101     </ScrollView>
   103 </merge>

mercurial