1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2018 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<com.android.car.ui.FocusArea 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/settings_content_focus_area" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:orientation="vertical"> 24 25 <LinearLayout 26 android:layout_width="match_parent" 27 android:layout_height="match_parent" 28 android:layout_marginHorizontal="@dimen/car_ui_margin" 29 android:orientation="horizontal"> 30 31 <!-- Start side: lock PIN --> 32 <FrameLayout 33 android:layout_width="0dp" 34 android:layout_height="match_parent" 35 android:layout_weight="@integer/content_weight" 36 android:gravity="center"> 37 38 <com.android.car.settings.security.PinPadView 39 android:id="@+id/pin_pad" 40 android:layout_width="wrap_content" 41 android:layout_height="wrap_content" 42 android:layout_gravity="center" 43 android:columnCount="3" 44 android:layoutDirection="ltr"/> 45 </FrameLayout> 46 47 <!-- End side: pin entry field and messages --> 48 <LinearLayout 49 android:layout_width="0dp" 50 android:layout_height="wrap_content" 51 android:layout_gravity="center_vertical" 52 android:layout_weight="@integer/illustration_weight" 53 android:orientation="vertical"> 54 55 <EditText 56 android:id="@+id/password_entry" 57 android:layout_width="match_parent" 58 android:layout_height="wrap_content" 59 android:layout_marginHorizontal="@dimen/pin_password_entry_padding_horizontal" 60 android:cursorVisible="false" 61 android:focusable="false" 62 android:gravity="center" 63 android:inputType="textPassword" 64 android:maxLines="1" 65 android:textAppearance="?android:attr/textAppearanceLarge"/> 66 67 <TextView 68 android:layout_width="match_parent" 69 android:layout_height="wrap_content" 70 android:layout_marginBottom="@dimen/confirm_lock_message_vertical_spacing" 71 android:gravity="center" 72 android:text="@string/lock_settings_enter_pin" 73 android:textAppearance="?android:attr/textAppearanceLarge"/> 74 75 <TextView 76 android:id="@+id/message" 77 android:layout_width="match_parent" 78 android:layout_height="wrap_content" 79 android:gravity="center" 80 android:textAppearance="?android:attr/textAppearanceMedium"/> 81 </LinearLayout> 82 </LinearLayout> 83</com.android.car.ui.FocusArea> 84