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
17<RelativeLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:orientation="vertical"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    style="?attr/face_layout_theme">
23
24    <!-- Top divider -->
25    <View
26        android:layout_alignParentTop="true"
27        android:layout_width="match_parent"
28        android:layout_height="1dp"
29        android:background="?android:attr/listDivider" />
30
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"
39        android:layout_toStartOf="@+id/toggle"
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"
49        android:layout_toStartOf="@+id/toggle"
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 -->
66    <Switch
67        android:layout_alignParentEnd="true"
68        android:layout_width="wrap_content"
69        android:layout_height="wrap_content"
70        android:id="@+id/toggle"
71        android:layout_centerVertical="true"
72        android:checked="true"/>
73
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>
82