• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.Material.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
52            <LinearLayout
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:orientation="vertical">
56
57                <TextView
58                    android:id="@+id/zen_onboarding_new_setting_title"
59                    android:layout_width="match_parent"
60                    android:layout_height="wrap_content"
61                    android:text="@string/zen_onboarding_new_setting_title"
62                    android:textAppearance="?android:attr/textAppearanceListItem" />
63
64                <TextView
65                    android:id="@+id/zen_onboarding_new_setting_summary"
66                    android:layout_width="match_parent"
67                    android:layout_height="wrap_content"
68                    android:text="@string/zen_onboarding_new_setting_summary" />
69            </LinearLayout>
70
71        </LinearLayout>
72
73        <LinearLayout
74            android:id="@+id/zen_onboarding_current_setting"
75            android:layout_width="match_parent"
76            android:layout_height="wrap_content"
77            android:layout_below="@+id/zen_onboarding_new_setting"
78            android:layout_centerHorizontal="true"
79            android:layout_marginTop="10dp"
80            android:orientation="horizontal">
81
82            <RadioButton
83                android:id="@+id/zen_onboarding_current_setting_button"
84                android:layout_width="wrap_content"
85                android:layout_height="wrap_content"
86                android:paddingHorizontal="8dp" />
87
88            <LinearLayout
89                android:layout_width="match_parent"
90                android:layout_height="wrap_content"
91                android:orientation="vertical">
92
93                <TextView
94                    android:id="@+id/zen_onboarding_current_setting_title"
95                    android:layout_width="match_parent"
96                    android:layout_height="wrap_content"
97                    android:text="@string/zen_onboarding_current_setting_title"
98                    android:textAppearance="?android:attr/textAppearanceListItem" />
99
100                <TextView
101                    android:id="@+id/zen_onboarding_current_setting_summary"
102                    android:layout_width="match_parent"
103                    android:layout_height="wrap_content"
104                    android:text="@string/zen_onboarding_current_setting_summary" />
105            </LinearLayout>
106        </LinearLayout>
107    </RelativeLayout>
108
109    <RelativeLayout
110        android:id="@+id/buttons"
111        android:layout_width="match_parent"
112        android:layout_height="wrap_content"
113        android:layout_below="@+id/zen_onboarding_choices"
114        android:layout_marginLeft="8dp"
115        android:layout_marginTop="20dp"
116        android:layout_marginBottom="10dp">
117
118        <Button
119            android:id="@+id/settings"
120            android:layout_width="wrap_content"
121            android:layout_height="wrap_content"
122            android:text="@string/zen_onboarding_settings"
123            android:layout_alignParentStart="true"
124            style="@style/TextAppearance.ZenOnboardingButton"
125            android:onClick="launchSettings" />
126
127        <Button
128            android:id="@+id/ok"
129            android:layout_width="wrap_content"
130            android:layout_height="wrap_content"
131            android:layout_alignParentEnd="true"
132            android:text="@string/zen_onboarding_ok"
133            style="@style/TextAppearance.ZenOnboardingButton"
134            android:onClick="save" />
135    </RelativeLayout>
136</RelativeLayout>