Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 **
      4 ** Copyright 2012, 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 <com.android.keyguard.KeyguardPINView
     21         xmlns:android="http://schemas.android.com/apk/res/android"
     22         xmlns:androidprv="http://schemas.android.com/apk/res-auto"
     23         android:id="@+id/keyguard_pin_view"
     24         android:layout_width="match_parent"
     25         android:layout_height="match_parent"
     26         androidprv:layout_maxWidth="@dimen/keyguard_security_width"
     27         androidprv:layout_maxHeight="@dimen/keyguard_security_max_height"
     28         android:orientation="vertical"
     29         android:contentDescription="@string/keyguard_accessibility_pin_unlock"
     30         >
     31     <include layout="@layout/keyguard_message_area"
     32              android:layout_width="match_parent"
     33              android:layout_height="wrap_content"
     34             />
     35     <LinearLayout
     36             android:id="@+id/keyguard_bouncer_frame"
     37             android:layout_width="match_parent"
     38             android:layout_height="0dp"
     39             android:orientation="vertical"
     40             android:layout_weight="1"
     41             android:layoutDirection="ltr"
     42             >
     43         <com.android.keyguard.AlphaOptimizedRelativeLayout
     44                 android:id="@+id/row0"
     45                 android:layout_width="match_parent"
     46                 android:layout_height="0dp"
     47                 android:layout_weight="1"
     48                 android:paddingBottom="16dp"
     49                 >
     50             <com.android.keyguard.PasswordTextView
     51                     android:id="@+id/pinEntry"
     52                     android:layout_width="@dimen/keyguard_security_width"
     53                     android:layout_height="match_parent"
     54                     android:gravity="center"
     55                     android:layout_centerHorizontal="true"
     56                     android:layout_marginRight="72dp"
     57                     androidprv:scaledTextSize="28"
     58                     />
     59             <ImageButton
     60                     android:id="@+id/delete_button"
     61                     android:layout_width="wrap_content"
     62                     android:layout_height="match_parent"
     63                     android:gravity="center_vertical"
     64                     android:src="@drawable/ic_backspace_24dp"
     65                     android:clickable="true"
     66                     android:paddingTop="8dip"
     67                     android:paddingBottom="8dip"
     68                     android:paddingRight="8dp"
     69                     android:paddingLeft="24dp"
     70                     android:background="@drawable/ripple_drawable"
     71                     android:contentDescription="@string/keyboardview_keycode_delete"
     72                     android:layout_alignEnd="@+id/pinEntry"
     73                     android:layout_alignParentRight="true"
     74                     />
     75             <View
     76                     android:id="@+id/divider"
     77                     android:layout_width="match_parent"
     78                     android:layout_height="1dp"
     79                     android:layout_alignParentBottom="true"
     80                     android:background="#28FFFFFF"
     81                     />
     82         </com.android.keyguard.AlphaOptimizedRelativeLayout>
     83         <LinearLayout
     84                 android:id="@+id/row1"
     85                 android:layout_width="match_parent"
     86                 android:layout_height="0dp"
     87                 android:layout_weight="1"
     88                 android:orientation="horizontal"
     89                 >
     90             <com.android.keyguard.NumPadKey
     91                     android:id="@+id/key1"
     92                     android:layout_width="0px"
     93                     android:layout_height="match_parent"
     94                     android:layout_weight="1"
     95                     androidprv:textView="@+id/pinEntry"
     96                     androidprv:digit="1"
     97                     />
     98             <com.android.keyguard.NumPadKey
     99                     android:id="@+id/key2"
    100                     android:layout_width="0px"
    101                     android:layout_height="match_parent"
    102                     android:layout_weight="1"
    103                     androidprv:textView="@+id/pinEntry"
    104                     androidprv:digit="2"
    105                     />
    106             <com.android.keyguard.NumPadKey
    107                     android:id="@+id/key3"
    108                     android:layout_width="0px"
    109                     android:layout_height="match_parent"
    110                     android:layout_weight="1"
    111                     androidprv:textView="@+id/pinEntry"
    112                     androidprv:digit="3"
    113                     />
    114         </LinearLayout>
    115         <LinearLayout
    116                 android:id="@+id/row2"
    117                 android:layout_width="match_parent"
    118                 android:layout_height="0dp"
    119                 android:layout_weight="1"
    120                 android:orientation="horizontal"
    121                 >
    122             <com.android.keyguard.NumPadKey
    123                     android:id="@+id/key4"
    124                     android:layout_width="0px"
    125                     android:layout_height="match_parent"
    126                     android:layout_weight="1"
    127                     androidprv:textView="@+id/pinEntry"
    128                     androidprv:digit="4"
    129                     />
    130             <com.android.keyguard.NumPadKey
    131                     android:id="@+id/key5"
    132                     android:layout_width="0px"
    133                     android:layout_height="match_parent"
    134                     android:layout_weight="1"
    135                     androidprv:textView="@+id/pinEntry"
    136                     androidprv:digit="5"
    137                     />
    138             <com.android.keyguard.NumPadKey
    139                     android:id="@+id/key6"
    140                     android:layout_width="0px"
    141                     android:layout_height="match_parent"
    142                     android:layout_weight="1"
    143                     androidprv:textView="@+id/pinEntry"
    144                     androidprv:digit="6"
    145                     />
    146         </LinearLayout>
    147         <LinearLayout
    148                 android:id="@+id/row3"
    149                 android:layout_width="match_parent"
    150                 android:layout_height="0dp"
    151                 android:orientation="horizontal"
    152                 android:layout_weight="1"
    153                 >
    154             <com.android.keyguard.NumPadKey
    155                     android:id="@+id/key7"
    156                     android:layout_width="0px"
    157                     android:layout_height="match_parent"
    158                     android:layout_weight="1"
    159                     androidprv:textView="@+id/pinEntry"
    160                     androidprv:digit="7"
    161                     />
    162             <com.android.keyguard.NumPadKey
    163                     android:id="@+id/key8"
    164                     android:layout_width="0px"
    165                     android:layout_height="match_parent"
    166                     android:layout_weight="1"
    167                     androidprv:textView="@+id/pinEntry"
    168                     androidprv:digit="8"
    169                     />
    170             <com.android.keyguard.NumPadKey
    171                     android:id="@+id/key9"
    172                     android:layout_width="0px"
    173                     android:layout_height="match_parent"
    174                     android:layout_weight="1"
    175                     androidprv:textView="@+id/pinEntry"
    176                     androidprv:digit="9"
    177                     />
    178         </LinearLayout>
    179         <LinearLayout
    180                 android:id="@+id/row4"
    181                 android:layout_width="match_parent"
    182                 android:layout_height="0dp"
    183                 android:layout_weight="1"
    184                 android:orientation="horizontal"
    185                 >
    186             <Space
    187                     android:layout_width="0px"
    188                     android:layout_height="match_parent"
    189                     android:layout_weight="1"
    190                     />
    191             <com.android.keyguard.NumPadKey
    192                     android:id="@+id/key0"
    193                     android:layout_width="0px"
    194                     android:layout_height="match_parent"
    195                     android:layout_weight="1"
    196                     androidprv:textView="@+id/pinEntry"
    197                     androidprv:digit="0"
    198                     />
    199             <com.android.keyguard.AlphaOptimizedImageButton
    200                     android:id="@+id/key_enter"
    201                     android:layout_width="0px"
    202                     android:layout_height="match_parent"
    203                     android:layout_weight="1"
    204                     android:paddingBottom="11sp"
    205                     android:src="@drawable/ic_done_wht"
    206                     android:background="@drawable/ripple_drawable"
    207                     android:contentDescription="@string/keyboardview_keycode_enter"
    208                     />
    209         </LinearLayout>
    210     </LinearLayout>
    211     <include layout="@layout/keyguard_eca"
    212              android:id="@+id/keyguard_selector_fade_container"
    213              android:layout_width="match_parent"
    214              android:layout_height="wrap_content"
    215              android:orientation="vertical"
    216              android:layout_gravity="bottom|center_horizontal"
    217              android:gravity="center_horizontal"/>
    218 
    219 </com.android.keyguard.KeyguardPINView>
    220