Brad Stenning | 92e2835 | 2018-12-18 12:34:59 -0800 | [diff] [blame] | 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 | android:id="@+id/keyguard_pattern_view" |
| 28 | android:orientation="horizontal" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="match_parent" |
| 31 | android:paddingHorizontal="@dimen/car_margin"> |
| 32 | |
| 33 | <FrameLayout |
| 34 | android:layout_height="match_parent" |
| 35 | android:layout_width="0dp" |
| 36 | android:layout_weight="1"> |
| 37 | |
| 38 | <com.android.internal.widget.LockPatternView |
| 39 | android:id="@+id/lockPatternView" |
| 40 | android:layout_width="@dimen/keyguard_pattern_dimension" |
| 41 | android:layout_height="@dimen/keyguard_pattern_dimension" |
| 42 | android:layout_gravity="center"/> |
| 43 | </FrameLayout> |
| 44 | |
| 45 | <LinearLayout |
| 46 | android:id="@+id/container" |
| 47 | android:layout_height="match_parent" |
| 48 | android:layout_width="0dp" |
| 49 | android:layout_weight="1" |
| 50 | android:orientation="vertical" |
| 51 | android:gravity="center_vertical"> |
| 52 | |
| 53 | <TextView |
| 54 | android:layout_width="match_parent" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:layout_margin="@dimen/car_padding_2" |
| 57 | android:gravity="center" |
| 58 | android:textColor="@android:color/white" |
| 59 | android:textSize="@dimen/car_body1_size" |
| 60 | android:text="@string/keyguard_enter_your_pattern" /> |
| 61 | |
| 62 | <include layout="@layout/keyguard_message_area" /> |
| 63 | |
| 64 | <Button |
| 65 | android:id="@+id/cancel_button" |
| 66 | android:layout_width="wrap_content" |
| 67 | android:layout_height="wrap_content" |
| 68 | android:layout_gravity="center" |
| 69 | style="@style/KeyguardButton" |
| 70 | android:text="@string/cancel"/> |
| 71 | |
| 72 | <include layout="@layout/keyguard_eca" |
| 73 | android:id="@+id/keyguard_selector_fade_container" |
| 74 | android:layout_width="match_parent" |
| 75 | android:layout_height="wrap_content" |
| 76 | android:orientation="vertical" |
| 77 | android:layout_gravity="bottom|center_horizontal" |
| 78 | android:gravity="center_horizontal" |
| 79 | android:visibility="gone" /> |
| 80 | </LinearLayout> |
| 81 | |
| 82 | </com.android.keyguard.KeyguardPatternView> |