1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:orientation="vertical" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content"> 21 22 <TextView 23 android:id="@+id/authentication_header" 24 android:text="@string/authentication_label" 25 android:layout_height="wrap_content" 26 android:layout_width="match_parent" 27 style="@style/account_setup_label_text" 28 android:textAppearance="?android:attr/textAppearanceSmall" 29 android:textColor="?android:attr/textColorPrimary"/> 30 31 <TextView 32 android:id="@+id/add_authentication" 33 android:text="@string/add_authentication_label" 34 android:layout_height="wrap_content" 35 android:layout_width="match_parent" 36 android:padding="8dp" 37 android:drawablePadding="16dip" 38 style="@style/account_setup_label_text" 39 android:drawableStart="@drawable/ic_add_24dp" 40 android:drawableLeft="@drawable/ic_add_24dp" 41 android:textAppearance="?android:attr/textAppearanceSmall" 42 android:textColor="?android:attr/textColorPrimary"/> 43 44 <LinearLayout 45 android:id="@+id/password_wrapper" 46 android:layout_width="match_parent" 47 android:layout_height="wrap_content" 48 android:orientation="horizontal"> 49 50 <TextView 51 android:id="@+id/password_label" 52 android:text="@string/account_setup_password_subheading" 53 android:layout_height="wrap_content" 54 android:layout_width="wrap_content" 55 android:layout_marginLeft="8dp" 56 android:layout_marginRight="8dp" 57 android:paddingTop="0dp" 58 android:textAppearance="?android:attr/textAppearanceSmall" 59 android:layout_gravity="center_vertical" 60 android:textColor="?android:attr/textColorPrimary" /> 61 62 <EditText 63 android:id="@+id/password_edit" 64 android:layout_height="wrap_content" 65 android:layout_width="match_parent" 66 android:layout_weight="1" 67 android:hint="@string/account_setup_incoming_password_label" 68 android:layout_gravity="center_vertical" 69 android:inputType="textPassword" 70 android:imeOptions="actionNext" /> 71 72 <ImageView 73 android:id="@+id/clear_password" 74 android:contentDescription="@string/clear_authentication_label" 75 android:layout_height="wrap_content" 76 android:layout_width="wrap_content" 77 android:clickable="true" 78 android:layout_gravity="center_vertical" 79 android:src="@drawable/ic_setup_delete" 80 style="@style/clear_authentication_button"/> 81 </LinearLayout> 82 83 <LinearLayout 84 android:id="@+id/oauth_wrapper" 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 android:orientation="horizontal"> 88 89 <TextView 90 android:id="@+id/oauth_label" 91 android:layout_height="wrap_content" 92 android:layout_width="match_parent" 93 android:layout_weight="1" 94 android:layout_gravity="center_vertical" 95 android:paddingTop="8dp" 96 style="@style/oauth_label" 97 android:textAppearance="?android:attr/textAppearanceSmall" 98 android:textColor="?android:attr/textColorPrimary" /> 99 100 <ImageView 101 android:id="@+id/clear_oauth" 102 android:contentDescription="@string/clear_authentication_label" 103 android:layout_height="match_parent" 104 android:layout_width="wrap_content" 105 android:clickable="true" 106 android:src="@drawable/ic_setup_delete" 107 style="@style/clear_authentication_button"/> 108 109 </LinearLayout> 110 111 </LinearLayout> 112