Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 **
      4 ** Copyright 2018, 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 <!-- Car customizations
     21      - Added title "Enter your Pattern" at the top
     22      - Hid the emergency call at the bottom
     23 -->
     24 
     25 <com.android.keyguard.KeyguardPatternView
     26     xmlns:android="http://schemas.android.com/apk/res/android"
     27     xmlns:androidprv="http://schemas.android.com/apk/res-auto"
     28     android:id="@+id/keyguard_pattern_view"
     29     android:orientation="vertical"
     30     android:layout_width="match_parent"
     31     android:layout_height="match_parent"
     32     androidprv:layout_maxWidth="@dimen/keyguard_security_width"
     33     android:gravity="center_horizontal">
     34 
     35     <FrameLayout
     36         android:layout_width="match_parent"
     37         android:layout_height="match_parent">
     38 
     39         <LinearLayout
     40             android:id="@+id/container"
     41             android:layout_height="wrap_content"
     42             android:layout_width="wrap_content"
     43             android:orientation="vertical"
     44             android:layout_gravity="center">
     45 
     46             <TextView
     47                 android:layout_width="match_parent"
     48                 android:layout_height="wrap_content"
     49                 android:layout_margin="@*android:dimen/car_padding_2"
     50                 android:gravity="center"
     51                 android:textColor="@android:color/white"
     52                 android:textSize="@*android:dimen/car_body1_size"
     53                 android:text="@string/keyguard_enter_your_pattern" />
     54 
     55             <include layout="@layout/keyguard_message_area" />
     56 
     57             <com.android.internal.widget.LockPatternView
     58                 android:id="@+id/lockPatternView"
     59                 android:layout_width="@dimen/keyguard_pattern_dimension"
     60                 android:layout_height="@dimen/keyguard_pattern_dimension"
     61                 android:layout_marginVertical="@dimen/pin_pattern_pad_margin_vertical"
     62                 android:layout_gravity="center_horizontal"
     63                 android:gravity="center" />
     64 
     65             <Button
     66                 android:id="@+id/cancel_button"
     67                 android:layout_width="wrap_content"
     68                 android:layout_height="wrap_content"
     69                 android:layout_gravity="center"
     70                 style="@style/KeyguardButton"
     71                 android:text="@string/cancel"/>
     72 
     73           <include layout="@layout/keyguard_eca"
     74               android:id="@+id/keyguard_selector_fade_container"
     75               android:layout_width="match_parent"
     76               android:layout_height="wrap_content"
     77               android:orientation="vertical"
     78               android:layout_gravity="bottom|center_horizontal"
     79               android:gravity="center_horizontal"
     80               android:visibility="gone" />
     81         </LinearLayout>
     82     </FrameLayout>
     83 
     84 </com.android.keyguard.KeyguardPatternView>
     85