Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 3 | Copyright 2018 The Android Open Source Project |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 4 | |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 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 | <LinearLayout |
| 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 22 | android:orientation="vertical"> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 23 | |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 24 | <LinearLayout |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 25 | android:layout_width="match_parent" |
| 26 | android:layout_height="match_parent" |
| 27 | android:layout_marginHorizontal="@dimen/car_ui_margin" |
| 28 | android:orientation="horizontal"> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 29 | |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 30 | <!-- Start side: lock pattern --> |
| 31 | <FrameLayout |
| 32 | android:layout_width="0dp" |
| 33 | android:layout_height="match_parent" |
| 34 | android:layout_weight="@integer/content_weight"> |
Jian Jin | 23fbd82 | 2018-05-08 16:38:00 -0700 | [diff] [blame] | 35 | |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 36 | <com.android.car.settings.security.PinPadView |
| 37 | android:id="@+id/pin_pad" |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" |
| 40 | android:layout_gravity="center" |
| 41 | android:columnCount="3"/> |
| 42 | </FrameLayout> |
| 43 | |
| 44 | <!-- End side: pin entry field and messages --> |
| 45 | <LinearLayout |
| 46 | android:layout_width="0dp" |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 47 | android:layout_height="wrap_content" |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 48 | android:layout_gravity="center_vertical" |
| 49 | android:layout_weight="@integer/illustration_weight" |
davidln | e1769ad | 2018-11-12 09:19:25 -0800 | [diff] [blame] | 50 | android:gravity="center" |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 51 | android:orientation="vertical"> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 52 | |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 53 | <ImageView |
| 54 | android:layout_width="@dimen/icon_size" |
| 55 | android:layout_height="@dimen/icon_size" |
| 56 | android:src="@drawable/ic_lock"/> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 57 | |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 58 | <TextView |
| 59 | android:id="@+id/title_text" |
| 60 | android:layout_width="match_parent" |
| 61 | android:layout_height="wrap_content" |
| 62 | android:layout_marginBottom="@dimen/choose_pin_title_text_margin_bottom" |
| 63 | android:gravity="center" |
| 64 | android:text="@string/lockscreen_choose_your_pin" |
| 65 | android:textAppearance="?android:attr/textAppearanceLarge"/> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 66 | |
Peter Li | 62e62f2 | 2019-10-15 16:24:34 -0700 | [diff] [blame] | 67 | <EditText |
| 68 | android:id="@+id/password_entry" |
| 69 | android:layout_width="match_parent" |
| 70 | android:layout_height="wrap_content" |
| 71 | android:cursorVisible="false" |
| 72 | android:focusable="false" |
| 73 | android:gravity="center" |
| 74 | android:inputType="textPassword" |
| 75 | android:maxLines="1" |
| 76 | android:paddingHorizontal="@dimen/pin_password_entry_padding_horizontal" |
| 77 | android:textAppearance="?android:attr/textAppearanceLarge"/> |
| 78 | |
| 79 | <!-- hint text --> |
| 80 | <TextView |
| 81 | android:id="@+id/hint_text" |
| 82 | android:layout_width="match_parent" |
| 83 | android:layout_height="wrap_content" |
| 84 | android:gravity="center" |
| 85 | android:text="@string/choose_lock_pin_hints" |
| 86 | android:textAppearance="?android:attr/textAppearanceMedium"/> |
| 87 | |
| 88 | </LinearLayout> |
Jian Jin | 6212e0f | 2018-03-19 16:22:46 -0700 | [diff] [blame] | 89 | </LinearLayout> |
| 90 | </LinearLayout> |