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:textAppearance="?android:attr/textAppearanceMedium"/>
     34 
     35     <!-- spacer above text entry field -->
     36     <View
     37         android:id="@+id/spacerBottom"
     38         android:layout_width="fill_parent"
     39         android:layout_height="1dip"
     40         android:layout_marginTop="6dip"
     41         android:background="@android:drawable/divider_horizontal_dark"
     42     />
     43 
     44     <!-- Password entry field -->
     45     <EditText android:id="@+id/password_entry"
     46         android:layout_width="match_parent"
     47         android:layout_height="wrap_content"
     48         android:layout_marginTop="15dip"
     49         android:layout_marginStart="30dip"
     50         android:layout_marginEnd="30dip"
     51         android:layout_gravity="center"
     52         android:inputType="textPassword"
     53         android:imeOptions="actionNext"
     54         android:gravity="center"
     55         android:textSize="32sp"
     56         style="@style/TextAppearance.PasswordEntry"
     57     />
     58 
     59     <!-- Spacer between password entry and keyboard -->
     60     <View
     61         android:layout_width="match_parent"
     62         android:layout_height="0dip"
     63         android:layout_weight="1" />
     64 
     65     <!-- Alphanumeric keyboard -->
     66     <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
     67         android:layout_alignParentBottom="true"
     68         android:layout_width="match_parent"
     69         android:layout_height="wrap_content"
     70         android:background="#00000000"
     71         android:layout_marginBottom="30dip"
     72         android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
     73         android:visibility="gone"
     74     />
     75 
     76     <View
     77         android:layout_width="match_parent"
     78         android:layout_height="0dip"
     79     />
     80 
     81     <RelativeLayout
     82         android:layout_height="wrap_content"
     83         android:layout_width="match_parent">
     84 
     85         <LinearLayout
     86             style="@style/SecurityPreferenceButtonContainer"
     87             android:layout_alignParentEnd="true"
     88             android:orientation="horizontal">
     89 
     90             <Button android:id="@+id/cancel_button"
     91                 style="@style/SecurityPreferenceButton"
     92                 android:text="@string/lockpassword_cancel_label"/>
     93 
     94             <Button android:id="@+id/next_button"
     95                 style="@style/SecurityPreferenceButton"
     96                 android:text="@string/lockpassword_continue_label"/>
     97 
     98         </LinearLayout>
     99 
    100     </RelativeLayout>
    101 
    102 </LinearLayout>
    103 
    104