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                     android:contentDescription="@string/keyguard_accessibility_pin_area"
     59                     />
     60             <ImageButton
     61                     android:id="@+id/delete_button"
     62                     android:layout_width="wrap_content"
     63                     android:layout_height="match_parent"
     64                     android:gravity="center_vertical"
     65                     android:src="@drawable/ic_backspace_24dp"
     66                     android:clickable="true"
     67                     android:paddingTop="8dip"
     68                     android:paddingBottom="8dip"
     69                     android:paddingRight="8dp"
     70                     android:paddingLeft="24dp"
     71                     android:background="@drawable/ripple_drawable"
     72                     android:contentDescription="@string/keyboardview_keycode_delete"
     73                     android:layout_alignEnd="@+id/pinEntry"
     74                     android:layout_alignParentRight="true"
     75                     />
     76             <View
     77                     android:id="@+id/divider"
     78                     android:layout_width="match_parent"
     79                     android:layout_height="1dp"
     80                     android:layout_alignParentBottom="true"
     81                     android:background="#28FFFFFF"
     82                     />
     83         </com.android.keyguard.AlphaOptimizedRelativeLayout>
     84         <LinearLayout
     85                 android:id="@+id/row1"
     86                 android:layout_width="match_parent"
     87                 android:layout_height="0dp"
     88                 android:layout_weight="1"
     89                 android:orientation="horizontal"
     90                 >
     91             <com.android.keyguard.NumPadKey
     92                     android:id="@+id/key1"
     93                     android:layout_width="0px"
     94                     android:layout_height="match_parent"
     95                     android:layout_weight="1"
     96                     androidprv:textView="@+id/pinEntry"
     97                     androidprv:digit="1"
     98                     />
     99             <com.android.keyguard.NumPadKey
    100                     android:id="@+id/key2"
    101                     android:layout_width="0px"
    102                     android:layout_height="match_parent"
    103                     android:layout_weight="1"
    104                     androidprv:textView="@+id/pinEntry"
    105                     androidprv:digit="2"
    106                     />
    107             <com.android.keyguard.NumPadKey
    108                     android:id="@+id/key3"
    109                     android:layout_width="0px"
    110                     android:layout_height="match_parent"
    111                     android:layout_weight="1"
    112                     androidprv:textView="@+id/pinEntry"
    113                     androidprv:digit="3"
    114                     />
    115         </LinearLayout>
    116         <LinearLayout
    117                 android:id="@+id/row2"
    118                 android:layout_width="match_parent"
    119                 android:layout_height="0dp"
    120                 android:layout_weight="1"
    121                 android:orientation="horizontal"
    122                 >
    123             <com.android.keyguard.NumPadKey
    124                     android:id="@+id/key4"
    125                     android:layout_width="0px"
    126                     android:layout_height="match_parent"
    127                     android:layout_weight="1"
    128                     androidprv:textView="@+id/pinEntry"
    129                     androidprv:digit="4"
    130                     />
    131             <com.android.keyguard.NumPadKey
    132                     android:id="@+id/key5"
    133                     android:layout_width="0px"
    134                     android:layout_height="match_parent"
    135                     android:layout_weight="1"
    136                     androidprv:textView="@+id/pinEntry"
    137                     androidprv:digit="5"
    138                     />
    139             <com.android.keyguard.NumPadKey
    140                     android:id="@+id/key6"
    141                     android:layout_width="0px"
    142                     android:layout_height="match_parent"
    143                     android:layout_weight="1"
    144                     androidprv:textView="@+id/pinEntry"
    145                     androidprv:digit="6"
    146                     />
    147         </LinearLayout>
    148         <LinearLayout
    149                 android:id="@+id/row3"
    150                 android:layout_width="match_parent"
    151                 android:layout_height="0dp"
    152                 android:orientation="horizontal"
    153                 android:layout_weight="1"
    154                 >
    155             <com.android.keyguard.NumPadKey
    156                     android:id="@+id/key7"
    157                     android:layout_width="0px"
    158                     android:layout_height="match_parent"
    159                     android:layout_weight="1"
    160                     androidprv:textView="@+id/pinEntry"
    161                     androidprv:digit="7"
    162                     />
    163             <com.android.keyguard.NumPadKey
    164                     android:id="@+id/key8"
    165                     android:layout_width="0px"
    166                     android:layout_height="match_parent"
    167                     android:layout_weight="1"
    168                     androidprv:textView="@+id/pinEntry"
    169                     androidprv:digit="8"
    170                     />
    171             <com.android.keyguard.NumPadKey
    172                     android:id="@+id/key9"
    173                     android:layout_width="0px"
    174                     android:layout_height="match_parent"
    175                     android:layout_weight="1"
    176                     androidprv:textView="@+id/pinEntry"
    177                     androidprv:digit="9"
    178                     />
    179         </LinearLayout>
    180         <LinearLayout
    181                 android:id="@+id/row4"
    182                 android:layout_width="match_parent"
    183                 android:layout_height="0dp"
    184                 android:layout_weight="1"
    185                 android:orientation="horizontal"
    186                 >
    187             <Space
    188                     android:layout_width="0px"
    189                     android:layout_height="match_parent"
    190                     android:layout_weight="1"
    191                     />
    192             <com.android.keyguard.NumPadKey
    193                     android:id="@+id/key0"
    194                     android:layout_width="0px"
    195                     android:layout_height="match_parent"
    196                     android:layout_weight="1"
    197                     androidprv:textView="@+id/pinEntry"
    198                     androidprv:digit="0"
    199                     />
    200             <com.android.keyguard.AlphaOptimizedImageButton
    201                     android:id="@+id/key_enter"
    202                     android:layout_width="0px"
    203                     android:layout_height="match_parent"
    204                     android:layout_weight="1"
    205                     android:paddingBottom="11sp"
    206                     android:src="@drawable/ic_done_wht"
    207                     android:background="@drawable/ripple_drawable"
    208                     android:contentDescription="@string/keyboardview_keycode_enter"
    209                     />
    210         </LinearLayout>
    211     </LinearLayout>
    212     <include layout="@layout/keyguard_eca"
    213              android:id="@+id/keyguard_selector_fade_container"
    214              android:layout_width="match_parent"
    215              android:layout_height="wrap_content"
    216              android:orientation="vertical"
    217              android:layout_gravity="bottom|center_horizontal"
    218              android:gravity="center_horizontal"/>
    219 
    220 </com.android.keyguard.KeyguardPINView>
    221