Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2018 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 17 | <RelativeLayout |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 18 | xmlns:android="http://schemas.android.com/apk/res/android" |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 19 | android:orientation="vertical" |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 20 | android:layout_width="match_parent" |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 21 | android:layout_height="wrap_content" |
| 22 | style="?attr/face_layout_theme"> |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 23 | |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 24 | <!-- Top divider --> |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 25 | <View |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 26 | android:layout_alignParentTop="true" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="1dp" |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 29 | android:background="?android:attr/listDivider" /> |
| 30 | |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 31 | <!-- Title --> |
| 32 | <com.google.android.setupdesign.view.RichTextView |
| 33 | style="@style/SudDescription.Glif" |
| 34 | android:id="@+id/title" |
| 35 | android:paddingHorizontal="8dp" |
| 36 | android:paddingTop="8dp" |
| 37 | android:gravity="start" |
| 38 | android:layout_alignParentStart="true" |
Ilya Matyukhin | df59284 | 2020-04-21 19:57:03 -0700 | [diff] [blame] | 39 | android:layout_toStartOf="@+id/toggle" |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 40 | android:layout_width="wrap_content" |
| 41 | android:layout_height="wrap_content" /> |
| 42 | |
| 43 | <!-- Subtitle --> |
| 44 | <TextView |
| 45 | android:id="@+id/subtitle" |
| 46 | android:paddingHorizontal="8dp" |
| 47 | android:paddingBottom="8dp" |
| 48 | android:layout_alignParentStart="true" |
Ilya Matyukhin | df59284 | 2020-04-21 19:57:03 -0700 | [diff] [blame] | 49 | android:layout_toStartOf="@+id/toggle" |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 50 | android:layout_below="@+id/title" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:text="@string/security_settings_face_enroll_introduction_accessibility_expanded"/> |
| 54 | |
| 55 | <!-- Vertical divider --> |
| 56 | <View |
| 57 | android:layout_centerVertical="true" |
| 58 | android:layout_alignTop="@+id/toggle" |
| 59 | android:layout_alignBottom="@+id/toggle" |
| 60 | android:layout_toStartOf="@+id/toggle" |
| 61 | android:layout_width="1dp" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:background="?android:attr/listDivider" /> |
| 64 | |
| 65 | <!-- Toggle --> |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 66 | <Switch |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 67 | android:layout_alignParentEnd="true" |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 68 | android:layout_width="wrap_content" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:id="@+id/toggle" |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 71 | android:layout_centerVertical="true" |
Kevin Chyn | 2c8d775 | 2018-12-17 12:26:30 -0800 | [diff] [blame] | 72 | android:checked="true"/> |
| 73 | |
Kevin Chyn | 5c2842c | 2019-04-22 18:17:11 -0700 | [diff] [blame] | 74 | <!-- Bottom divider --> |
| 75 | <View |
| 76 | android:layout_below="@+id/subtitle" |
| 77 | android:layout_width="match_parent" |
| 78 | android:layout_height="1dp" |
| 79 | android:background="?android:attr/listDivider" /> |
| 80 | |
| 81 | </RelativeLayout> |