• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="wrap_content"
20    android:clipChildren="false"
21    android:layout_marginBottom="@dimen/zen_mode_condition_detail_item_spacing"
22    android:layout_marginStart="1dp"
23    android:layout_marginEnd="0dp" >
24
25    <RadioButton
26        android:id="@android:id/checkbox"
27        android:layout_width="40dp"
28        android:layout_marginStart="7dp"
29        android:layout_marginEnd="4dp"
30        android:layout_height="48dp"
31        android:layout_alignParentStart="true"
32        android:gravity="center" />
33
34    <LinearLayout
35        android:id="@android:id/content"
36        android:layout_width="match_parent"
37        android:layout_height="wrap_content"
38        android:layout_centerVertical="true"
39        android:orientation="vertical"
40        android:layout_toEndOf="@android:id/checkbox"
41        android:layout_toStartOf="@android:id/button1">
42
43        <TextView
44            android:id="@android:id/text1"
45            android:layout_width="match_parent"
46            android:layout_height="wrap_content"
47            android:ellipsize="end"
48            android:textAlignment="viewStart"
49            android:maxLines="1"
50            android:textAppearance="@style/TextAppearance.QS.DetailItemPrimary" />
51
52        <TextView
53            android:id="@android:id/text2"
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:layout_marginTop="@dimen/zen_mode_condition_detail_item_interline_spacing"
57            android:ellipsize="end"
58            android:textAlignment="viewStart"
59            android:maxLines="1"
60            android:textAppearance="@style/TextAppearance.QS.DetailItemSecondary" />
61
62    </LinearLayout>
63
64    <ImageView
65        android:id="@android:id/button1"
66        style="@style/QSBorderlessButton"
67        android:background="@drawable/ripple_drawable_20dp"
68        android:layout_width="48dp"
69        android:layout_height="48dp"
70        android:layout_centerVertical="true"
71        android:scaleType="center"
72        android:layout_toStartOf="@android:id/button2"
73        android:contentDescription="@string/accessibility_quick_settings_less_time"
74        android:src="@drawable/ic_qs_minus" />
75
76    <ImageView
77        android:id="@android:id/button2"
78        style="@style/QSBorderlessButton"
79        android:background="@drawable/ripple_drawable_20dp"
80        android:layout_width="48dp"
81        android:layout_height="48dp"
82        android:layout_alignParentEnd="true"
83        android:scaleType="center"
84        android:layout_centerVertical="true"
85        android:contentDescription="@string/accessibility_quick_settings_more_time"
86        android:src="@drawable/ic_qs_plus" />
87
88</RelativeLayout>