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 <!-- This is the SIM PIN view that allows the user to enter a SIM PIN to unlock the device. -->
     20 <com.android.keyguard.KeyguardSimPinView
     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_sim_pin_view"
     24         android:orientation="vertical"
     25         android:layout_width="match_parent"
     26         android:layout_height="match_parent"
     27         androidprv:layout_maxWidth="@dimen/keyguard_security_width"
     28         androidprv:layout_maxHeight="@dimen/keyguard_security_max_height"
     29         android:gravity="center_horizontal">
     30 
     31     <ImageView
     32             android:id="@+id/keyguard_sim"
     33             android:layout_width="match_parent"
     34             android:layout_height="wrap_content"
     35             android:tint="@color/background_protected"
     36             android:src="@drawable/ic_lockscreen_sim"/>
     37 
     38     <LinearLayout
     39             android:layout_width="match_parent"
     40             android:layout_height="0dp"
     41             android:orientation="vertical"
     42             android:gravity="center"
     43             android:layout_weight="1"
     44             android:layoutDirection="ltr"
     45             >
     46         <include layout="@layout/keyguard_esim_area"
     47              android:id="@+id/keyguard_esim_area"
     48              android:layout_width="wrap_content"
     49              android:layout_height="wrap_content"
     50              android:layout_marginTop="@dimen/eca_overlap" />
     51 
     52         <RelativeLayout
     53                 android:id="@+id/row0"
     54                 android:layout_width="match_parent"
     55                 android:layout_height="0dp"
     56                 android:layout_weight="1"
     57                 android:paddingBottom="16dp"
     58                 >
     59             <com.android.keyguard.PasswordTextView
     60                     android:id="@+id/simPinEntry"
     61                     android:layout_width="@dimen/keyguard_security_width"
     62                     android:layout_height="match_parent"
     63                     android:gravity="center"
     64                     android:layout_centerHorizontal="true"
     65                     android:layout_marginRight="72dp"
     66                     androidprv:scaledTextSize="@integer/scaled_password_text_size"
     67                     android:textColor="?attr/wallpaperTextColor"
     68                     android:contentDescription="@string/keyguard_accessibility_sim_pin_area"
     69                     />
     70             <View
     71                     android:id="@+id/divider"
     72                     android:layout_width="match_parent"
     73                     android:layout_height="1dp"
     74                     android:layout_alignParentBottom="true"
     75                     android:background="@drawable/pin_divider"
     76                     />
     77         </RelativeLayout>
     78         <LinearLayout
     79                 android:layout_width="match_parent"
     80                 android:layout_height="0dp"
     81                 android:layout_weight="1"
     82                 android:orientation="horizontal"
     83                 >
     84             <com.android.keyguard.NumPadKey
     85                     android:id="@+id/key1"
     86                     android:layout_width="0px"
     87                     android:layout_height="match_parent"
     88                     android:layout_weight="1"
     89                     androidprv:textView="@+id/simPinEntry"
     90                     androidprv:digit="1"
     91                     />
     92             <com.android.keyguard.NumPadKey
     93                     android:id="@+id/key2"
     94                     android:layout_width="0px"
     95                     android:layout_height="match_parent"
     96                     android:layout_weight="1"
     97                     androidprv:textView="@+id/simPinEntry"
     98                     androidprv:digit="2"
     99                     />
    100             <com.android.keyguard.NumPadKey
    101                     android:id="@+id/key3"
    102                     android:layout_width="0px"
    103                     android:layout_height="match_parent"
    104                     android:layout_weight="1"
    105                     androidprv:textView="@+id/simPinEntry"
    106                     androidprv:digit="3"
    107                     />
    108         </LinearLayout>
    109         <LinearLayout
    110                 android:layout_width="match_parent"
    111                 android:layout_height="0dp"
    112                 android:layout_weight="1"
    113                 android:orientation="horizontal"
    114                 >
    115             <com.android.keyguard.NumPadKey
    116                     android:id="@+id/key4"
    117                     android:layout_width="0px"
    118                     android:layout_height="match_parent"
    119                     android:layout_weight="1"
    120                     androidprv:textView="@+id/simPinEntry"
    121                     androidprv:digit="4"
    122                     />
    123             <com.android.keyguard.NumPadKey
    124                     android:id="@+id/key5"
    125                     android:layout_width="0px"
    126                     android:layout_height="match_parent"
    127                     android:layout_weight="1"
    128                     androidprv:textView="@+id/simPinEntry"
    129                     androidprv:digit="5"
    130                     />
    131             <com.android.keyguard.NumPadKey
    132                     android:id="@+id/key6"
    133                     android:layout_width="0px"
    134                     android:layout_height="match_parent"
    135                     android:layout_weight="1"
    136                     androidprv:textView="@+id/simPinEntry"
    137                     androidprv:digit="6"
    138                     />
    139         </LinearLayout>
    140         <LinearLayout
    141                 android:layout_width="match_parent"
    142                 android:layout_height="0dp"
    143                 android:orientation="horizontal"
    144                 android:layout_weight="1"
    145                 >
    146             <com.android.keyguard.NumPadKey
    147                     android:id="@+id/key7"
    148                     android:layout_width="0px"
    149                     android:layout_height="match_parent"
    150                     android:layout_weight="1"
    151                     androidprv:textView="@+id/simPinEntry"
    152                     androidprv:digit="7"
    153                     />
    154             <com.android.keyguard.NumPadKey
    155                     android:id="@+id/key8"
    156                     android:layout_width="0px"
    157                     android:layout_height="match_parent"
    158                     android:layout_weight="1"
    159                     androidprv:textView="@+id/simPinEntry"
    160                     androidprv:digit="8"
    161                     />
    162             <com.android.keyguard.NumPadKey
    163                     android:id="@+id/key9"
    164                     android:layout_width="0px"
    165                     android:layout_height="match_parent"
    166                     android:layout_weight="1"
    167                     androidprv:textView="@+id/simPinEntry"
    168                     androidprv:digit="9"
    169                     />
    170         </LinearLayout>
    171         <LinearLayout
    172                 android:layout_width="match_parent"
    173                 android:layout_height="0dp"
    174                 android:layout_weight="1"
    175                 android:orientation="horizontal"
    176                 >
    177             <com.android.keyguard.AlphaOptimizedImageButton
    178                     android:id="@+id/delete_button"
    179                     android:layout_width="0px"
    180                     android:layout_height="match_parent"
    181                     android:layout_weight="1"
    182                     android:background="@drawable/ripple_drawable_pin"
    183                     android:contentDescription="@string/keyboardview_keycode_delete"
    184                     style="@style/Keyguard.ImageButton.NumPadDelete"
    185                     />
    186             <com.android.keyguard.NumPadKey
    187                     android:id="@+id/key0"
    188                     android:layout_width="0px"
    189                     android:layout_height="match_parent"
    190                     android:layout_weight="1"
    191                     androidprv:textView="@+id/simPinEntry"
    192                     androidprv:digit="0"
    193                     />
    194             <com.android.keyguard.AlphaOptimizedImageButton
    195                     android:id="@+id/key_enter"
    196                     android:layout_width="0px"
    197                     android:layout_height="match_parent"
    198                     android:layout_weight="1"
    199                     style="@style/Keyguard.ImageButton.NumPadEnter"
    200                     android:background="@drawable/ripple_drawable_pin"
    201                     android:contentDescription="@string/keyboardview_keycode_enter"
    202                     />
    203         </LinearLayout>
    204     </LinearLayout>
    205 
    206     <include layout="@layout/keyguard_eca"
    207              android:id="@+id/keyguard_selector_fade_container"
    208              android:layout_width="match_parent"
    209              android:layout_height="wrap_content"
    210              android:orientation="vertical"
    211              android:layout_gravity="bottom|center_horizontal"
    212              android:gravity="center_horizontal"/>
    213 
    214 </com.android.keyguard.KeyguardSimPinView>
    215