1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2018 The Android Open Source Project
4
5     Licensed under the Apache License, Version 2.0 (the "License");
6     you may not use this file except in compliance with the License.
7     You may obtain a copy of the License at
8
9          http://www.apache.org/licenses/LICENSE-2.0
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<RelativeLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content">
21
22    <RelativeLayout
23        android:id="@+id/zen_onboarding_choices"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:paddingLeft="24dp"
27        android:paddingRight="24dp"
28        android:paddingTop="18dp">
29
30        <TextView
31            android:id="@+id/header"
32            android:layout_width="wrap_content"
33            android:layout_height="wrap_content"
34            android:text="@string/zen_onboarding_dnd_visual_disturbances_header"
35            android:textAppearance="@android:style/TextAppearance.DeviceDefault.DialogWindowTitle" />
36
37        <LinearLayout
38            android:id="@+id/zen_onboarding_new_setting"
39            android:layout_width="match_parent"
40            android:layout_height="wrap_content"
41            android:layout_below="@+id/header"
42            android:layout_centerHorizontal="true"
43            android:layout_marginTop="22dp"
44            android:orientation="horizontal">
45
46            <RadioButton
47                android:id="@+id/zen_onboarding_new_setting_button"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:paddingHorizontal="8dp"
51                android:minHeight="48dp"/>
52
53            <LinearLayout
54                android:layout_width="match_parent"
55                android:layout_height="wrap_content"
56                android:orientation="vertical">
57
58                <TextView
59                    android:id="@+id/zen_onboarding_new_setting_title"
60                    android:layout_width="match_parent"
61                    android:layout_height="wrap_content"
62                    android:text="@string/zen_onboarding_new_setting_title"
63                    android:textAppearance="?android:attr/textAppearanceListItem" />
64
65                <TextView
66                    android:id="@+id/zen_onboarding_new_setting_summary"
67                    android:layout_width="match_parent"
68                    android:layout_height="wrap_content"
69                    android:text="@string/zen_onboarding_new_setting_summary" />
70            </LinearLayout>
71
72        </LinearLayout>
73
74        <LinearLayout
75            android:id="@+id/zen_onboarding_current_setting"
76            android:layout_width="match_parent"
77            android:layout_height="wrap_content"
78            android:layout_below="@+id/zen_onboarding_new_setting"
79            android:layout_centerHorizontal="true"
80            android:layout_marginTop="10dp"
81            android:orientation="horizontal">
82
83            <RadioButton
84                android:id="@+id/zen_onboarding_current_setting_button"
85                android:layout_width="wrap_content"
86                android:layout_height="wrap_content"
87                android:paddingHorizontal="8dp"
88                android:minHeight="48dp"/>
89
90            <LinearLayout
91                android:layout_width="match_parent"
92                android:layout_height="wrap_content"
93                android:orientation="vertical">
94
95                <TextView
96                    android:id="@+id/zen_onboarding_current_setting_title"
97                    android:layout_width="match_parent"
98                    android:layout_height="wrap_content"
99                    android:text="@string/zen_onboarding_current_setting_title"
100                    android:textAppearance="?android:attr/textAppearanceListItem" />
101
102                <TextView
103                    android:id="@+id/zen_onboarding_current_setting_summary"
104                    android:layout_width="match_parent"
105                    android:layout_height="wrap_content"
106                    android:text="@string/zen_onboarding_current_setting_summary" />
107            </LinearLayout>
108        </LinearLayout>
109    </RelativeLayout>
110
111    <RelativeLayout
112        android:id="@+id/buttons"
113        android:layout_width="match_parent"
114        android:layout_height="wrap_content"
115        android:layout_below="@+id/zen_onboarding_choices"
116        android:layout_marginLeft="8dp"
117        android:layout_marginTop="20dp"
118        android:layout_marginBottom="10dp">
119
120        <Button
121            android:id="@+id/settings"
122            android:layout_width="wrap_content"
123            android:layout_height="wrap_content"
124            android:text="@string/zen_onboarding_settings"
125            android:layout_alignParentStart="true"
126            style="@style/TextAppearance.ZenOnboardingButton"
127            android:onClick="launchSettings" />
128
129        <Button
130            android:id="@+id/ok"
131            android:layout_width="wrap_content"
132            android:layout_height="wrap_content"
133            android:layout_alignParentEnd="true"
134            android:text="@string/zen_onboarding_ok"
135            style="@style/TextAppearance.ZenOnboardingButton"
136            android:onClick="save" />
137    </RelativeLayout>
138</RelativeLayout>