Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 **
      4 ** Copyright 2008, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License")
      7 ** you may not use this file except in compliance with the License.
      8 ** You may obtain a copy of the License at
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software
     13 ** distributed under the License is distributed on an "AS IS" BASIS,
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 ** See the License for the specific language governing permissions and
     16 ** limitations under the License.
     17 */
     18 -->
     19 
     20 <!-- This is the same layout as choose_lock_password -->
     21 
     22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     23     android:layout_width="fill_parent"
     24     android:layout_height="fill_parent"
     25     android:orientation="vertical"
     26     android:gravity="center_horizontal">
     27 
     28     <!-- header text ('Enter Pin') -->
     29     <TextView android:id="@+id/headerText"
     30         android:layout_width="fill_parent"
     31         android:layout_height="wrap_content"
     32         android:gravity="center"
     33         android:lines="2"
     34         android:textAppearance="?android:attr/textAppearanceLarge"/>
     35 
     36     <!-- spacer above text entry field -->
     37     <View
     38         android:id="@+id/spacerBottom"
     39         android:layout_width="fill_parent"
     40         android:layout_height="1dip"
     41         android:layout_marginTop="6dip"
     42         android:background="@android:drawable/divider_horizontal_dark"
     43     />
     44 
     45     <!-- Password entry field -->
     46     <EditText android:id="@+id/password_entry"
     47         android:layout_width="match_parent"
     48         android:layout_height="wrap_content"
     49         android:singleLine="true"
     50         android:textStyle="bold"
     51         android:inputType="textPassword"
     52         android:imeOptions="actionNext"
     53         android:gravity="center"
     54         android:layout_gravity="center"
     55         android:textSize="32sp"
     56         android:layout_marginTop="15dip"
     57         android:layout_marginStart="30dip"
     58         android:layout_marginEnd="30dip"
     59         android:textAppearance="?android:attr/textAppearanceLarge"
     60         android:background="@drawable/password_field_default"
     61         android:textColor="#ffffffff"
     62     />
     63 
     64     <!-- Spacer between password entry and keyboard -->
     65     <View
     66         android:layout_width="match_parent"
     67         android:layout_height="0dip"
     68         android:layout_weight="1" />
     69 
     70     <!-- Alphanumeric keyboard -->
     71     <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
     72         android:layout_alignParentBottom="true"
     73         android:layout_width="match_parent"
     74         android:layout_height="wrap_content"
     75         android:background="#00000000"
     76         android:layout_marginBottom="30dip"
     77         android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
     78         android:visibility="gone"
     79     />
     80 
     81     <View
     82         android:layout_width="match_parent"
     83         android:layout_height="0dip"
     84     />
     85 
     86     <RelativeLayout
     87         android:layout_height="wrap_content"
     88         android:layout_width="match_parent">
     89 
     90         <LinearLayout
     91             style="@style/SecurityPreferenceButtonContainer"
     92             android:layout_alignParentEnd="true"
     93             android:orientation="horizontal">
     94 
     95             <Button android:id="@+id/cancel_button"
     96                 style="@style/SecurityPreferenceButton"
     97                 android:text="@string/lockpassword_cancel_label"/>
     98 
     99             <Button android:id="@+id/next_button"
    100                 style="@style/SecurityPreferenceButton"
    101                 android:text="@string/lockpassword_continue_label"/>
    102 
    103         </LinearLayout>
    104 
    105     </RelativeLayout>
    106 
    107 </LinearLayout>
    108 
    109