1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2023 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
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:orientation="horizontal">
24
25    <Space
26        android:layout_width="0dp"
27        android:layout_height="match_parent"
28        android:layout_weight="1"/>
29
30    <LinearLayout
31        android:layout_width="wrap_content"
32        android:layout_height="wrap_content"
33        android:orientation="vertical">
34
35        <FrameLayout
36            android:id="@+id/contrast_button_standard"
37            android:layout_width="@dimen/contrast_dialog_button_total_size"
38            android:layout_height="@dimen/contrast_dialog_button_total_size"
39            android:background="@drawable/contrast_dialog_button_background">
40
41            <ImageView
42                android:layout_gravity="center"
43                android:layout_height="wrap_content"
44                android:layout_width="wrap_content"
45                android:src="@drawable/ic_contrast_standard"/>
46        </FrameLayout>
47
48        <TextView
49            android:layout_width="match_parent"
50            android:layout_height="wrap_content"
51            android:layout_marginTop="@dimen/contrast_dialog_button_text_spacing"
52            android:gravity="center_horizontal|top"
53            android:textSize="@dimen/contrast_dialog_button_text_size"
54            android:text="@string/quick_settings_contrast_standard"
55            android:textColor="?androidprv:attr/textColorPrimary"/>
56    </LinearLayout>
57
58    <Space
59        android:layout_width="@dimen/contrast_dialog_button_horizontal_spacing"
60        android:layout_height="match_parent" />
61
62    <LinearLayout
63        android:layout_width="wrap_content"
64        android:layout_height="wrap_content"
65        android:orientation="vertical">
66
67        <FrameLayout
68            android:id="@+id/contrast_button_medium"
69            android:layout_width="@dimen/contrast_dialog_button_total_size"
70            android:layout_height="@dimen/contrast_dialog_button_total_size"
71            android:background="@drawable/contrast_dialog_button_background">
72
73            <ImageView
74                android:layout_gravity="center"
75                android:layout_height="wrap_content"
76                android:layout_width="wrap_content"
77                android:src="@drawable/ic_contrast_medium"/>
78        </FrameLayout>
79
80        <TextView
81            android:layout_width="match_parent"
82            android:layout_height="wrap_content"
83            android:layout_marginTop="@dimen/contrast_dialog_button_text_spacing"
84            android:gravity="center_horizontal|top"
85            android:textSize="@dimen/contrast_dialog_button_text_size"
86            android:text="@string/quick_settings_contrast_medium"
87            android:textColor="?androidprv:attr/textColorPrimary"/>
88    </LinearLayout>
89
90    <Space
91        android:layout_width="@dimen/contrast_dialog_button_horizontal_spacing"
92        android:layout_height="match_parent" />
93
94    <LinearLayout
95        android:layout_width="wrap_content"
96        android:layout_height="wrap_content"
97        android:orientation="vertical">
98
99        <FrameLayout
100            android:id="@+id/contrast_button_high"
101            android:layout_width="@dimen/contrast_dialog_button_total_size"
102            android:layout_height="@dimen/contrast_dialog_button_total_size"
103            android:background="@drawable/contrast_dialog_button_background">
104
105            <ImageView
106                android:layout_gravity="center"
107                android:layout_height="wrap_content"
108                android:layout_width="wrap_content"
109                android:src="@drawable/ic_contrast_high"/>
110
111        </FrameLayout>
112
113        <TextView
114            android:layout_width="match_parent"
115            android:layout_height="wrap_content"
116            android:layout_marginTop="@dimen/contrast_dialog_button_text_spacing"
117            android:gravity="center_horizontal|top"
118            android:textSize="@dimen/contrast_dialog_button_text_size"
119            android:text="@string/quick_settings_contrast_high"
120            android:textColor="?androidprv:attr/textColorPrimary"/>
121    </LinearLayout>
122
123    <Space
124        android:layout_width="0dp"
125        android:layout_height="match_parent"
126        android:layout_weight="1"/>
127</LinearLayout>
128