Home | History | Annotate | Download | only in layout
      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     <LinearLayout
     32         android:id="@+id/no_auth_wrapper"
     33         android:layout_width="match_parent"
     34         android:layout_height="wrap_content"
     35         android:orientation="horizontal">
     36         <TextView
     37             android:id="@+id/add_authentication"
     38             android:text="@string/add_authentication_label"
     39             android:layout_height="wrap_content"
     40             android:layout_width="match_parent"
     41             android:layout_weight="1"
     42             android:padding="16dip"
     43             android:drawablePadding="16dip"
     44             style="@style/account_setup_label_text"
     45             android:drawableStart="@drawable/ic_settings_add"
     46             android:textAppearance="?android:attr/textAppearanceSmall"
     47             android:textColor="?android:attr/textColorPrimary"/>
     48     </LinearLayout>
     49 
     50     <LinearLayout
     51         android:id="@+id/password_wrapper"
     52         android:layout_width="match_parent"
     53         android:layout_height="wrap_content"
     54         android:orientation="horizontal">
     55 
     56         <TextView
     57             android:id="@+id/password_label"
     58             android:text="@string/account_setup_password_subheading"
     59             android:layout_height="wrap_content"
     60             android:layout_width="wrap_content"
     61             android:layout_marginLeft="8dp"
     62             android:layout_marginRight="8dp"
     63             android:paddingTop="0dp"
     64             android:textAppearance="?android:attr/textAppearanceSmall"
     65             android:layout_gravity="center_vertical"
     66             android:textColor="?android:attr/textColorPrimary" />
     67 
     68         <EditText
     69             android:id="@+id/password_edit"
     70             android:layout_height="wrap_content"
     71             android:layout_width="match_parent"
     72             android:layout_weight="1"
     73             android:hint="@string/account_setup_incoming_password_label"
     74             android:layout_gravity="center_vertical"
     75             android:inputType="textPassword"
     76             android:imeOptions="actionNext" />
     77 
     78         <ImageView
     79             android:id="@+id/clear_password"
     80             android:contentDescription="@string/clear_authentication_label"
     81             android:layout_height="wrap_content"
     82             android:layout_width="wrap_content"
     83             android:clickable="true"
     84             android:layout_gravity="center_vertical"
     85             android:src="@drawable/ic_setup_delete"
     86             style="@style/clear_authentication_button"/>
     87     </LinearLayout>
     88 
     89     <LinearLayout
     90         android:id="@+id/oauth_wrapper"
     91         android:layout_width="match_parent"
     92         android:layout_height="wrap_content"
     93         android:orientation="horizontal">
     94 
     95         <TextView
     96             android:id="@+id/oauth_label"
     97             android:layout_height="wrap_content"
     98             android:layout_width="match_parent"
     99             android:layout_weight="1"
    100             android:layout_gravity="center_vertical"
    101             android:paddingTop="8dp"
    102             style="@style/oauth_label"
    103             android:textAppearance="?android:attr/textAppearanceSmall"
    104             android:textColor="?android:attr/textColorPrimary" />
    105 
    106         <ImageView
    107             android:id="@+id/clear_oauth"
    108             android:contentDescription="@string/clear_authentication_label"
    109             android:layout_height="match_parent"
    110             android:layout_width="wrap_content"
    111             android:clickable="true"
    112             android:src="@drawable/ic_setup_delete"
    113             style="@style/clear_authentication_button"/>
    114 
    115     </LinearLayout>
    116 
    117 </LinearLayout>
    118