blob: 08f25b4538b5dac1a8b4a5d1023e87abbcb33a90 [file] [log] [blame]
Mady Mellor409c3df2020-03-05 18:31:39 -08001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright (C) 2020 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 android:layout_width="match_parent"
21 android:layout_height="wrap_content"
22 android:gravity="center"
23 android:padding="@dimen/notification_importance_toggle_marginTop"
24 android:orientation="vertical">
25
26 <!-- If bubbles is managed by the admin this is used to inform the user. -->
27 <TextView
28 android:id="@android:id/summary"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:padding="@dimen/notification_importance_button_padding"
32 android:textAppearance="@style/TextAppearance.Small"
33 android:visibility="gone"
34 />
35
36 <com.android.settings.notification.NotificationButtonRelativeLayout
37 android:id="@+id/bubble_all"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content"
40 android:padding="@dimen/notification_importance_button_padding"
41 android:clickable="true"
42 android:focusable="true">
43 <ImageView
44 android:id="@+id/bubble_all_icon"
45 android:src="@drawable/ic_bubble_all"
46 android:background="@android:color/transparent"
Lyn Han35277302020-07-08 13:51:02 -070047 android:layout_centerVertical="true"
Mady Mellor409c3df2020-03-05 18:31:39 -080048 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:clickable="false"
51 android:focusable="false"/>
52 <TextView
53 android:id="@+id/bubble_all_label"
54 android:layout_width="match_parent"
55 android:layout_height="wrap_content"
Lyn Han35277302020-07-08 13:51:02 -070056 android:layout_centerVertical="true"
Mady Mellor409c3df2020-03-05 18:31:39 -080057 android:ellipsize="end"
58 android:maxLines="2"
59 android:clickable="false"
60 android:focusable="false"
61 android:layout_toEndOf="@id/bubble_all_icon"
62 android:layout_marginStart="@dimen/notification_importance_drawable_padding"
63 android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
64 android:text="@string/bubble_app_setting_all"/>
65 </com.android.settings.notification.NotificationButtonRelativeLayout>
66
67 <com.android.settings.notification.NotificationButtonRelativeLayout
68 android:id="@+id/bubble_selected"
69 android:layout_width="match_parent"
70 android:layout_height="wrap_content"
71 android:padding="@dimen/notification_importance_button_padding"
72 android:layout_marginTop="@dimen/notification_importance_button_separation"
73 android:clickable="true"
74 android:focusable="true">
75 <ImageView
76 android:id="@+id/bubble_selected_icon"
77 android:src="@drawable/ic_bubble_selected"
78 android:background="@android:color/transparent"
Lyn Han35277302020-07-08 13:51:02 -070079 android:layout_centerVertical="true"
Mady Mellor409c3df2020-03-05 18:31:39 -080080 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:clickable="false"
83 android:focusable="false"/>
84 <TextView
85 android:id="@+id/bubble_selected_label"
86 android:layout_width="match_parent"
87 android:layout_height="wrap_content"
Lyn Han35277302020-07-08 13:51:02 -070088 android:layout_centerVertical="true"
Mady Mellor409c3df2020-03-05 18:31:39 -080089 android:ellipsize="end"
90 android:maxLines="2"
91 android:clickable="false"
92 android:focusable="false"
93 android:layout_toEndOf="@id/bubble_selected_icon"
94 android:layout_marginStart="@dimen/notification_importance_drawable_padding"
95 android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
96 android:text="@string/bubble_app_setting_selected"/>
97 </com.android.settings.notification.NotificationButtonRelativeLayout>
98
99 <com.android.settings.notification.NotificationButtonRelativeLayout
100 android:id="@+id/bubble_none"
101 android:layout_width="match_parent"
102 android:layout_height="wrap_content"
103 android:padding="@dimen/notification_importance_button_padding"
104 android:layout_marginTop="@dimen/notification_importance_button_separation"
105 android:clickable="true"
106 android:focusable="true">
107 <ImageView
108 android:id="@+id/bubble_none_icon"
109 android:src="@drawable/ic_bubble_none"
110 android:background="@android:color/transparent"
Lyn Han35277302020-07-08 13:51:02 -0700111 android:layout_centerVertical="true"
Mady Mellor409c3df2020-03-05 18:31:39 -0800112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:clickable="false"
115 android:focusable="false"/>
116 <TextView
117 android:id="@+id/bubble_none_label"
118 android:layout_width="match_parent"
119 android:layout_height="wrap_content"
Lyn Han35277302020-07-08 13:51:02 -0700120 android:layout_centerVertical="true"
Mady Mellor409c3df2020-03-05 18:31:39 -0800121 android:ellipsize="end"
122 android:maxLines="2"
123 android:clickable="false"
124 android:focusable="false"
125 android:layout_toEndOf="@id/bubble_none_icon"
126 android:layout_marginStart="@dimen/notification_importance_drawable_padding"
127 android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected"
128 android:text="@string/bubble_app_setting_none"/>
129 </com.android.settings.notification.NotificationButtonRelativeLayout>
130
Lyn Han35277302020-07-08 13:51:02 -0700131</LinearLayout>