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