Dan Sandler | 4247a5c | 2014-07-23 15:58:08 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright 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 | |
Selim Cinek | 024ca59 | 2014-09-01 15:11:28 +0200 | [diff] [blame] | 18 | <com.android.systemui.statusbar.NotificationGuts |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:layout_width="match_parent" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:id="@+id/notification_guts" |
| 23 | android:visibility="gone" |
| 24 | android:clickable="true" |
| 25 | android:gravity="top|start" |
| 26 | android:orientation="vertical" |
Julia Reynolds | a07af88 | 2015-12-17 08:32:48 -0500 | [diff] [blame] | 27 | android:paddingStart="@*android:dimen/notification_content_margin_start" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 28 | android:paddingEnd="8dp" |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 29 | android:background="@color/notification_guts_bg_color"> |
Dan Sandler | 4247a5c | 2014-07-23 15:58:08 -0400 | [diff] [blame] | 30 | |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 31 | <!-- header --> |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 32 | <LinearLayout |
Dan Sandler | 4247a5c | 2014-07-23 15:58:08 -0400 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Julia Reynolds | 490ee4b | 2016-03-16 17:13:08 -0400 | [diff] [blame] | 34 | android:layout_height="wrap_content" |
| 35 | android:paddingTop="14dp" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 36 | android:paddingEnd="8dp" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 37 | android:id="@+id/notification_guts_header" |
| 38 | android:orientation="horizontal" |
Julia Reynolds | 490ee4b | 2016-03-16 17:13:08 -0400 | [diff] [blame] | 39 | android:layout_gravity="start"> |
Dan Sandler | 4247a5c | 2014-07-23 15:58:08 -0400 | [diff] [blame] | 40 | |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 41 | <ImageView |
Julia Reynolds | be01846 | 2016-03-01 12:22:48 -0500 | [diff] [blame] | 42 | android:id="@+id/app_icon" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 43 | android:layout_width="18dp" |
| 44 | android:layout_height="18dp" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 45 | android:layout_marginEnd="6dp" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 46 | android:src="@android:drawable/arrow_down_float" /> |
| 47 | <TextView |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 48 | android:id="@+id/pkgname" |
| 49 | android:layout_width="wrap_content" |
| 50 | android:layout_height="wrap_content" |
| 51 | style="@style/TextAppearance.NotificationGuts.Header" /> |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 52 | <TextView |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 53 | android:layout_width="wrap_content" |
| 54 | android:layout_height="wrap_content" |
| 55 | android:id="@+id/debug_info" |
| 56 | android:layout_weight="0" |
| 57 | style="@style/TextAppearance.NotificationGuts.Header" |
| 58 | android:layout_gravity="bottom|start" |
| 59 | android:visibility="gone" /> |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 60 | </LinearLayout> |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 61 | <!-- Importance radio buttons --> |
| 62 | <RadioGroup |
| 63 | android:id="@+id/importance_buttons" |
| 64 | android:layout_width="match_parent" |
| 65 | android:layout_height="wrap_content" |
Julia Reynolds | aebacc9 | 2016-03-04 11:11:46 -0500 | [diff] [blame] | 66 | android:paddingTop="4dp" |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 67 | android:paddingEnd="8dp" > |
| 68 | <RadioButton |
| 69 | android:id="@+id/silent_importance" |
| 70 | android:layout_width="wrap_content" |
| 71 | android:layout_height="48dp" |
Julia Reynolds | aebacc9 | 2016-03-04 11:11:46 -0500 | [diff] [blame] | 72 | android:paddingStart="32dp" |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 73 | android:text="@string/show_silently" |
Julia Reynolds | aebacc9 | 2016-03-04 11:11:46 -0500 | [diff] [blame] | 74 | style="@style/TextAppearance.NotificationGuts.Radio" |
| 75 | android:buttonTint="@color/notification_guts_buttons" /> |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 76 | <RadioButton |
| 77 | android:id="@+id/block_importance" |
| 78 | android:layout_width="wrap_content" |
| 79 | android:layout_height="48dp" |
Julia Reynolds | aebacc9 | 2016-03-04 11:11:46 -0500 | [diff] [blame] | 80 | android:paddingStart="32dp" |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 81 | android:text="@string/block" |
Julia Reynolds | aebacc9 | 2016-03-04 11:11:46 -0500 | [diff] [blame] | 82 | style="@style/TextAppearance.NotificationGuts.Radio" |
| 83 | android:buttonTint="@color/notification_guts_buttons" /> |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 84 | <RadioButton |
| 85 | android:id="@+id/reset_importance" |
| 86 | android:layout_width="wrap_content" |
| 87 | android:layout_height="48dp" |
Julia Reynolds | aebacc9 | 2016-03-04 11:11:46 -0500 | [diff] [blame] | 88 | android:paddingStart="32dp" |
| 89 | style="@style/TextAppearance.NotificationGuts.Radio" |
| 90 | android:buttonTint="@color/notification_guts_buttons" /> |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 91 | </RadioGroup> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 92 | <!-- Importance slider --> |
| 93 | <LinearLayout |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 94 | android:id="@+id/importance_slider" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 95 | android:layout_width="match_parent" |
| 96 | android:layout_height="wrap_content" |
| 97 | android:gravity="center_vertical" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 98 | android:orientation="vertical" |
| 99 | android:clickable="false" |
| 100 | android:focusable="false" |
Julia Reynolds | 4077945 | 2016-02-23 13:43:32 -0500 | [diff] [blame] | 101 | android:paddingEnd="8dp" |
| 102 | android:visibility="gone"> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 103 | <TextView |
| 104 | android:id="@+id/title" |
| 105 | android:layout_width="match_parent" |
| 106 | android:layout_height="wrap_content" |
| 107 | android:singleLine="true" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 108 | style="@style/TextAppearance.NotificationGuts.Primary" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 109 | android:ellipsize="marquee" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 110 | android:fadingEdge="horizontal" |
| 111 | android:paddingBottom="2dp"/> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 112 | |
| 113 | <TextView |
| 114 | android:id="@+id/summary" |
| 115 | android:layout_width="match_parent" |
| 116 | android:layout_height="wrap_content" |
| 117 | android:layout_alignStart="@android:id/title" |
| 118 | android:textAlignment="viewStart" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 119 | style="@style/TextAppearance.NotificationGuts.Secondary" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 120 | android:maxLines="3" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 121 | android:minLines="2" |
| 122 | android:paddingBottom="4dp" /> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 123 | |
| 124 | <FrameLayout |
| 125 | android:layout_width="match_parent" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 126 | android:layout_height="48dp" |
Julia Reynolds | a07af88 | 2015-12-17 08:32:48 -0500 | [diff] [blame] | 127 | android:paddingTop="8dp" > |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 128 | |
| 129 | <ImageView |
| 130 | android:id="@+id/low_importance" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 131 | android:src="@*android:drawable/ic_notification_block" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 132 | android:layout_gravity="center_vertical|start" |
| 133 | android:layout_width="24dp" |
Julia Reynolds | 7727ad2 | 2016-01-22 14:38:46 -0500 | [diff] [blame] | 134 | android:layout_height="24dp" |
| 135 | android:tint="@color/notification_guts_icon_tint"/> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 136 | |
| 137 | <SeekBar |
| 138 | android:id="@+id/seekbar" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 139 | android:layout_marginStart="56dp" |
| 140 | android:layout_marginEnd="56dp" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 141 | android:layout_gravity="center_vertical" |
| 142 | android:layout_width="match_parent" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 143 | android:layout_height="48dp" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 144 | android:focusable="true" |
| 145 | android:background="#00ffffff" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 146 | android:progressBackgroundTint="@color/notification_guts_secondary_slider_color" |
| 147 | android:thumbTint="@color/notification_guts_slider_color" |
| 148 | android:progressTint="@color/notification_guts_slider_color" |
| 149 | style="@android:style/Widget.Material.SeekBar.Discrete" |
| 150 | android:tickMarkTint="@android:color/black" /> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 151 | |
| 152 | <ImageView |
| 153 | android:id="@+id/max_importance" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 154 | android:src="@*android:drawable/ic_notification_alert" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 155 | android:layout_gravity="center_vertical|end" |
| 156 | android:layout_width="24dp" |
Julia Reynolds | 7727ad2 | 2016-01-22 14:38:46 -0500 | [diff] [blame] | 157 | android:layout_height="24dp" |
| 158 | android:tint="@color/notification_guts_icon_tint" /> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 159 | |
| 160 | </FrameLayout> |
Dan Sandler | 4247a5c | 2014-07-23 15:58:08 -0400 | [diff] [blame] | 161 | </LinearLayout> |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 162 | <!-- buttons --> |
| 163 | <LinearLayout |
| 164 | android:layout_width="match_parent" |
| 165 | android:layout_height="wrap_content" |
| 166 | android:gravity="end" |
Julia Reynolds | 490ee4b | 2016-03-16 17:13:08 -0400 | [diff] [blame] | 167 | android:paddingTop="16dp" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 168 | android:paddingBottom="8dp" > |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 169 | |
| 170 | <TextView |
| 171 | android:id="@+id/more_settings" |
| 172 | android:text="@string/notification_more_settings" |
| 173 | android:layout_width="wrap_content" |
Julia Reynolds | 490ee4b | 2016-03-16 17:13:08 -0400 | [diff] [blame] | 174 | android:layout_height="36dp" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 175 | style="@style/TextAppearance.NotificationGuts.Button" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 176 | android:background="@drawable/btn_borderless_rect" |
| 177 | android:gravity="center" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 178 | android:paddingEnd="8dp" |
| 179 | android:paddingStart="8dp" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 180 | android:focusable="true" /> |
| 181 | |
| 182 | <TextView |
| 183 | android:id="@+id/done" |
| 184 | android:text="@string/notification_done" |
| 185 | android:layout_width="wrap_content" |
Julia Reynolds | 490ee4b | 2016-03-16 17:13:08 -0400 | [diff] [blame] | 186 | android:layout_height="36dp" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 187 | style="@style/TextAppearance.NotificationGuts.Button" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 188 | android:background="@drawable/btn_borderless_rect" |
| 189 | android:gravity="center" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 190 | android:layout_marginStart="8dp" |
| 191 | android:layout_marginEnd="8dp" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 192 | android:focusable="true"/> |
| 193 | </LinearLayout> |
Selim Cinek | 024ca59 | 2014-09-01 15:11:28 +0200 | [diff] [blame] | 194 | </com.android.systemui.statusbar.NotificationGuts> |