Home | History | Annotate | Download | only in layout
      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     <!-- Password entry field -->
     36     <EditText android:id="@+id/password_entry"
     37         android:layout_width="match_parent"
     38         android:layout_height="wrap_content"
     39         android:layout_marginStart="30dip"
     40         android:layout_marginEnd="30dip"
     41         android:layout_gravity="center"
     42         android:inputType="textPassword"
     43         android:imeOptions="actionNext"
     44         android:gravity="center"
     45         android:textSize="24sp"
     46         style="@style/TextAppearance.PasswordEntry"
     47     />
     48 
     49     <!-- Spacer between password entry and keyboard -->
     50     <View
     51         android:layout_width="match_parent"
     52         android:layout_height="0dip"
     53         android:layout_weight="1" />
     54 
     55     <!-- Alphanumeric keyboard -->
     56     <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
     57         android:layout_alignParentBottom="true"
     58         android:layout_width="match_parent"
     59         android:layout_height="wrap_content"
     60         android:background="#00000000"
     61         android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
     62         android:visibility="gone"
     63     />
     64 
     65     <View
     66         android:layout_width="match_parent"
     67         android:layout_height="0dip"
     68     />
     69 
     70     <LinearLayout
     71         style="@style/SecurityPreferenceButtonContainer"
     72         android:layout_alignParentEnd="true"
     73         android:layout_alignParentBottom="true"
     74         android:orientation="horizontal">
     75 
     76         <!-- left / top button: skip, or re-try -->
     77         <Button android:id="@+id/cancel_button"
     78             style="@style/SecurityPreferenceButton"
     79             android:text="@string/lockpattern_tutorial_cancel_label"/>
     80 
     81         <!-- right / bottom button: confirm or ok -->
     82         <Button android:id="@+id/next_button"
     83             style="@style/SecurityPreferenceButton"
     84             android:text="@string/lockpattern_tutorial_continue_label"/>
     85 
     86     </LinearLayout>
     87 
     88 </LinearLayout>
     89 
     90