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