Home | History | Annotate | Download | only in layout-land
      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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     20     android:layout_width="fill_parent"
     21     android:layout_height="fill_parent"
     22     android:orientation="vertical"
     23     android:gravity="center_horizontal">
     24 
     25     <LinearLayout
     26         android:layout_width="match_parent"
     27         android:layout_height="wrap_content"
     28         android:orientation="horizontal">
     29         <!-- "Enter PIN(Password) to unlock" -->
     30         <TextView android:id="@+id/headerText"
     31             android:layout_width="0dip"
     32             android:layout_height="wrap_content"
     33             android:layout_weight="1"
     34             android:orientation="horizontal"
     35             android:layout_marginEnd="6dip"
     36             android:layout_marginStart="6dip"
     37             android:layout_marginTop="10dip"
     38             android:layout_marginBottom="10dip"
     39             android:gravity="start"
     40             android:ellipsize="marquee"
     41             android:textAppearance="?android:attr/textAppearanceMedium"
     42         />
     43 
     44         <!-- Password entry field -->
     45         <EditText android:id="@+id/password_entry"
     46             android:layout_width="0dip"
     47             android:layout_height="wrap_content"
     48             android:layout_marginTop="5dip"
     49             android:layout_marginBottom="5dip"
     50             android:layout_gravity="center"
     51             android:layout_weight="1"
     52             android:inputType="textPassword"
     53             android:imeOptions="actionNext"
     54             android:gravity="center"
     55             android:textSize="24sp"
     56             style="@style/TextAppearance.PasswordEntry"
     57         />
     58     </LinearLayout>
     59 
     60     <!-- Alphanumeric keyboard -->
     61     <com.android.internal.widget.PasswordEntryKeyboardView android:id="@+id/keyboard"
     62         android:layout_alignParentBottom="true"
     63         android:layout_width="match_parent"
     64         android:layout_height="wrap_content"
     65         android:background="#00000000"
     66         android:keyBackground="@*android:drawable/btn_keyboard_key_fulltrans"
     67         android:visibility="gone"
     68     />
     69 
     70     <RelativeLayout
     71         android:layout_width="match_parent"
     72         android:layout_height="0dip"
     73         android:layout_weight="1">
     74         <LinearLayout
     75             style="@style/SecurityPreferenceButtonContainer"
     76             android:orientation="horizontal"
     77             android:layout_alignParentEnd="true"
     78             android:layout_alignParentBottom="true">
     79 
     80             <!-- left : cancel -->
     81             <Button android:id="@+id/cancel_button"
     82                 style="@style/SecurityPreferenceButton"
     83                 android:text="@string/lockpassword_cancel_label"/>
     84 
     85             <!-- right : continue -->
     86             <Button android:id="@+id/next_button"
     87                 style="@style/SecurityPreferenceButton"
     88                 android:text="@string/lockpassword_continue_label"/>
     89 
     90         </LinearLayout>
     91     </RelativeLayout>
     92 
     93 </LinearLayout>
     94