Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2014 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License")
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9         http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 <com.android.setupwizardlib.GlifLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     xmlns:settings="http://schemas.android.com/apk/res-auto"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:icon="@drawable/ic_lock"
     23     settings:suwFooter="@layout/choose_lock_password_footer"
     24     settings:suwHeaderText="@string/lockpassword_choose_your_screen_lock_header">
     25 
     26     <LinearLayout
     27         style="@style/SuwContentFrame"
     28         android:layout_width="match_parent"
     29         android:layout_height="match_parent"
     30         android:clipChildren="false"
     31         android:clipToPadding="false"
     32         android:gravity="center_horizontal"
     33         android:orientation="vertical">
     34 
     35         <TextView
     36             android:id="@+id/message"
     37             style="@style/SuwDescription.Glif"
     38             android:layout_width="match_parent"
     39             android:layout_height="wrap_content"
     40             android:minLines="2"/>
     41 
     42         <LinearLayout
     43             android:id="@+id/password_container"
     44             android:layout_width="match_parent"
     45             android:layout_height="wrap_content"
     46             android:layout_marginTop="16dp"
     47             android:clipChildren="false"
     48             android:clipToPadding="false"
     49             android:orientation="vertical"
     50             android:layoutMode="opticalBounds"
     51             android:paddingBottom="8dp">
     52 
     53             <!-- Password entry field -->
     54             <com.android.settings.widget.ScrollToParentEditText
     55                 android:id="@+id/password_entry"
     56                 android:layout_width="match_parent"
     57                 android:layout_height="wrap_content"
     58                 android:layout_gravity="center"
     59                 android:gravity="center"
     60                 android:inputType="textPassword"
     61                 android:imeOptions="actionNext|flagNoExtractUi|flagForceAscii"
     62                 style="@style/TextAppearance.PasswordEntry"/>
     63 
     64             <android.support.v7.widget.RecyclerView
     65                 android:id="@+id/password_requirements_view"
     66                 android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"/>
     68 
     69         </LinearLayout>
     70 
     71         <Button
     72             android:id="@+id/screen_lock_options"
     73             style="@style/SuwGlifButton.Tertiary"
     74             android:layout_width="wrap_content"
     75             android:layout_height="wrap_content"
     76             android:text="@string/setup_lock_settings_options_button_label"
     77             android:visibility="gone" />
     78 
     79     </LinearLayout>
     80 
     81 </com.android.setupwizardlib.GlifLayout>
     82