blob: bb3a7ffb99db5ec44eea553a3c40191da9a4bed9 [file] [log] [blame]
Kevin Chyn2c8d7752018-12-17 12:26:30 -08001<?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 Chyn5c2842c2019-04-22 18:17:11 -070017<RelativeLayout
Kevin Chyn2c8d7752018-12-17 12:26:30 -080018 xmlns:android="http://schemas.android.com/apk/res/android"
Kevin Chyn5c2842c2019-04-22 18:17:11 -070019 android:orientation="vertical"
Kevin Chyn2c8d7752018-12-17 12:26:30 -080020 android:layout_width="match_parent"
Kevin Chyn5c2842c2019-04-22 18:17:11 -070021 android:layout_height="wrap_content"
22 style="?attr/face_layout_theme">
Kevin Chyn2c8d7752018-12-17 12:26:30 -080023
Kevin Chyn5c2842c2019-04-22 18:17:11 -070024 <!-- Top divider -->
Kevin Chyn2c8d7752018-12-17 12:26:30 -080025 <View
Kevin Chyn5c2842c2019-04-22 18:17:11 -070026 android:layout_alignParentTop="true"
27 android:layout_width="match_parent"
28 android:layout_height="1dp"
Kevin Chyn2c8d7752018-12-17 12:26:30 -080029 android:background="?android:attr/listDivider" />
30
Kevin Chyn5c2842c2019-04-22 18:17:11 -070031 <!-- 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 Matyukhindf592842020-04-21 19:57:03 -070039 android:layout_toStartOf="@+id/toggle"
Kevin Chyn5c2842c2019-04-22 18:17:11 -070040 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 Matyukhindf592842020-04-21 19:57:03 -070049 android:layout_toStartOf="@+id/toggle"
Kevin Chyn5c2842c2019-04-22 18:17:11 -070050 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 Chyn2c8d7752018-12-17 12:26:30 -080066 <Switch
Kevin Chyn5c2842c2019-04-22 18:17:11 -070067 android:layout_alignParentEnd="true"
Kevin Chyn2c8d7752018-12-17 12:26:30 -080068 android:layout_width="wrap_content"
69 android:layout_height="wrap_content"
70 android:id="@+id/toggle"
Kevin Chyn5c2842c2019-04-22 18:17:11 -070071 android:layout_centerVertical="true"
Kevin Chyn2c8d7752018-12-17 12:26:30 -080072 android:checked="true"/>
73
Kevin Chyn5c2842c2019-04-22 18:17:11 -070074 <!-- 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>