Mady Mellor | 409c3df | 2020-03-05 18:31:39 -0800 | [diff] [blame] | 1 | <?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" |
| 47 | android:layout_gravity="center" |
| 48 | 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" |
| 56 | android:ellipsize="end" |
| 57 | android:maxLines="2" |
| 58 | android:clickable="false" |
| 59 | android:focusable="false" |
| 60 | android:layout_toEndOf="@id/bubble_all_icon" |
| 61 | android:layout_marginStart="@dimen/notification_importance_drawable_padding" |
| 62 | android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected" |
| 63 | android:text="@string/bubble_app_setting_all"/> |
| 64 | </com.android.settings.notification.NotificationButtonRelativeLayout> |
| 65 | |
| 66 | <com.android.settings.notification.NotificationButtonRelativeLayout |
| 67 | android:id="@+id/bubble_selected" |
| 68 | android:layout_width="match_parent" |
| 69 | android:layout_height="wrap_content" |
| 70 | android:padding="@dimen/notification_importance_button_padding" |
| 71 | android:layout_marginTop="@dimen/notification_importance_button_separation" |
| 72 | android:clickable="true" |
| 73 | android:focusable="true"> |
| 74 | <ImageView |
| 75 | android:id="@+id/bubble_selected_icon" |
| 76 | android:src="@drawable/ic_bubble_selected" |
| 77 | android:background="@android:color/transparent" |
| 78 | android:layout_gravity="center" |
| 79 | android:layout_width="wrap_content" |
| 80 | android:layout_height="wrap_content" |
| 81 | android:clickable="false" |
| 82 | android:focusable="false"/> |
| 83 | <TextView |
| 84 | android:id="@+id/bubble_selected_label" |
| 85 | android:layout_width="match_parent" |
| 86 | android:layout_height="wrap_content" |
| 87 | android:ellipsize="end" |
| 88 | android:maxLines="2" |
| 89 | android:clickable="false" |
| 90 | android:focusable="false" |
| 91 | android:layout_toEndOf="@id/bubble_selected_icon" |
| 92 | android:layout_marginStart="@dimen/notification_importance_drawable_padding" |
| 93 | android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected" |
| 94 | android:text="@string/bubble_app_setting_selected"/> |
| 95 | </com.android.settings.notification.NotificationButtonRelativeLayout> |
| 96 | |
| 97 | <com.android.settings.notification.NotificationButtonRelativeLayout |
| 98 | android:id="@+id/bubble_none" |
| 99 | android:layout_width="match_parent" |
| 100 | android:layout_height="wrap_content" |
| 101 | android:padding="@dimen/notification_importance_button_padding" |
| 102 | android:layout_marginTop="@dimen/notification_importance_button_separation" |
| 103 | android:clickable="true" |
| 104 | android:focusable="true"> |
| 105 | <ImageView |
| 106 | android:id="@+id/bubble_none_icon" |
| 107 | android:src="@drawable/ic_bubble_none" |
| 108 | android:background="@android:color/transparent" |
| 109 | android:layout_gravity="center" |
| 110 | android:layout_width="wrap_content" |
| 111 | android:layout_height="wrap_content" |
| 112 | android:clickable="false" |
| 113 | android:focusable="false"/> |
| 114 | <TextView |
| 115 | android:id="@+id/bubble_none_label" |
| 116 | android:layout_width="match_parent" |
| 117 | android:layout_height="wrap_content" |
| 118 | android:ellipsize="end" |
| 119 | android:maxLines="2" |
| 120 | android:clickable="false" |
| 121 | android:focusable="false" |
| 122 | android:layout_toEndOf="@id/bubble_none_icon" |
| 123 | android:layout_marginStart="@dimen/notification_importance_drawable_padding" |
| 124 | android:textAppearance="@style/TextAppearance.NotificationImportanceButton.Unselected" |
| 125 | android:text="@string/bubble_app_setting_none"/> |
| 126 | </com.android.settings.notification.NotificationButtonRelativeLayout> |
| 127 | |
| 128 | </LinearLayout> |