1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2014 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 xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="@dimen/qs_detail_item_height"
20    android:layout_marginBottom="@dimen/zen_mode_condition_detail_item_spacing"
21    android:layout_marginStart="@dimen/zen_mode_condition_detail_button_padding"
22    android:layout_marginEnd="@dimen/zen_mode_condition_detail_button_padding" >
23
24    <RadioButton
25        android:id="@android:id/checkbox"
26        android:layout_width="40dp"
27        android:layout_marginStart="7dp"
28        android:layout_marginEnd="4dp"
29        android:layout_height="match_parent"
30        android:layout_alignParentStart="true"
31        android:gravity="center" />
32
33    <LinearLayout
34        android:id="@android:id/content"
35        android:layout_width="match_parent"
36        android:layout_height="wrap_content"
37        android:layout_centerVertical="true"
38        android:orientation="vertical"
39        android:layout_toEndOf="@android:id/checkbox"
40        android:layout_toStartOf="@android:id/button1">
41
42        <TextView
43            android:id="@android:id/text1"
44            android:layout_width="match_parent"
45            android:layout_height="wrap_content"
46            android:ellipsize="end"
47            android:textAlignment="viewStart"
48            android:maxLines="1"
49            android:textAppearance="@style/TextAppearance.QS.DetailItemPrimary" />
50
51        <TextView
52            android:id="@android:id/text2"
53            android:layout_width="match_parent"
54            android:layout_height="wrap_content"
55            android:layout_marginTop="@dimen/zen_mode_condition_detail_item_interline_spacing"
56            android:ellipsize="end"
57            android:textAlignment="viewStart"
58            android:maxLines="1"
59            android:textAppearance="@style/TextAppearance.QS.DetailItemSecondary" />
60
61    </LinearLayout>
62
63    <ImageView
64        android:id="@android:id/button1"
65        style="@style/QSBorderlessButton"
66        android:layout_width="48dp"
67        android:layout_height="48dp"
68        android:layout_centerVertical="true"
69        android:scaleType="center"
70        android:layout_toStartOf="@android:id/button2"
71        android:contentDescription="@string/accessibility_quick_settings_less_time"
72        android:src="@drawable/ic_qs_minus" />
73
74    <ImageView
75        android:id="@android:id/button2"
76        style="@style/QSBorderlessButton"
77        android:layout_width="48dp"
78        android:layout_height="48dp"
79        android:layout_alignParentEnd="true"
80        android:scaleType="center"
81        android:layout_centerVertical="true"
82        android:contentDescription="@string/accessibility_quick_settings_more_time"
83        android:src="@drawable/ic_qs_plus" />
84
85</RelativeLayout>