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" |
| 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 | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 34 | android:layout_height="30dp" |
| 35 | android:paddingTop="9dp" |
| 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" |
| 39 | android:layout_gravity="center_vertical|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 |
| 42 | android:id="@android:id/icon" |
| 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 | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 61 | <!-- Importance slider --> |
| 62 | <LinearLayout |
| 63 | android:layout_width="match_parent" |
| 64 | android:layout_height="wrap_content" |
| 65 | android:gravity="center_vertical" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 66 | android:orientation="vertical" |
| 67 | android:clickable="false" |
| 68 | android:focusable="false" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 69 | android:paddingBottom="8dip" |
| 70 | android:paddingEnd="8dp" > |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 71 | <TextView |
| 72 | android:id="@+id/title" |
| 73 | android:layout_width="match_parent" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:singleLine="true" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 76 | style="@style/TextAppearance.NotificationGuts.Primary" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 77 | android:ellipsize="marquee" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 78 | android:fadingEdge="horizontal" |
| 79 | android:paddingBottom="2dp"/> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 80 | |
| 81 | <TextView |
| 82 | android:id="@+id/summary" |
| 83 | android:layout_width="match_parent" |
| 84 | android:layout_height="wrap_content" |
| 85 | android:layout_alignStart="@android:id/title" |
| 86 | android:textAlignment="viewStart" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 87 | style="@style/TextAppearance.NotificationGuts.Secondary" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 88 | android:maxLines="3" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 89 | android:minLines="2" |
| 90 | android:paddingBottom="4dp" /> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 91 | |
| 92 | <FrameLayout |
| 93 | android:layout_width="match_parent" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 94 | android:layout_height="48dp" |
Julia Reynolds | a07af88 | 2015-12-17 08:32:48 -0500 | [diff] [blame] | 95 | android:paddingTop="8dp" > |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 96 | |
| 97 | <ImageView |
| 98 | android:id="@+id/low_importance" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 99 | android:src="@*android:drawable/ic_notification_block" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 100 | android:layout_gravity="center_vertical|start" |
| 101 | android:layout_width="24dp" |
Julia Reynolds | 7727ad2 | 2016-01-22 14:38:46 -0500 | [diff] [blame] | 102 | android:layout_height="24dp" |
| 103 | android:tint="@color/notification_guts_icon_tint"/> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 104 | |
| 105 | <SeekBar |
| 106 | android:id="@+id/seekbar" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 107 | android:layout_marginStart="56dp" |
| 108 | android:layout_marginEnd="56dp" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 109 | android:layout_gravity="center_vertical" |
| 110 | android:layout_width="match_parent" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 111 | android:layout_height="48dp" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 112 | android:focusable="true" |
| 113 | android:background="#00ffffff" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 114 | android:progressBackgroundTint="@color/notification_guts_secondary_slider_color" |
| 115 | android:thumbTint="@color/notification_guts_slider_color" |
| 116 | android:progressTint="@color/notification_guts_slider_color" |
| 117 | style="@android:style/Widget.Material.SeekBar.Discrete" |
| 118 | android:tickMarkTint="@android:color/black" /> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 119 | |
| 120 | <ImageView |
| 121 | android:id="@+id/max_importance" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 122 | android:src="@*android:drawable/ic_notification_alert" |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 123 | android:layout_gravity="center_vertical|end" |
| 124 | android:layout_width="24dp" |
Julia Reynolds | 7727ad2 | 2016-01-22 14:38:46 -0500 | [diff] [blame] | 125 | android:layout_height="24dp" |
| 126 | android:tint="@color/notification_guts_icon_tint" /> |
Julia Reynolds | ead00aa | 2015-12-07 08:23:48 -0500 | [diff] [blame] | 127 | |
| 128 | </FrameLayout> |
Dan Sandler | 4247a5c | 2014-07-23 15:58:08 -0400 | [diff] [blame] | 129 | </LinearLayout> |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 130 | <!-- buttons --> |
| 131 | <LinearLayout |
| 132 | android:layout_width="match_parent" |
| 133 | android:layout_height="wrap_content" |
| 134 | android:gravity="end" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 135 | android:paddingBottom="8dp" > |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 136 | |
| 137 | <TextView |
| 138 | android:id="@+id/more_settings" |
| 139 | android:text="@string/notification_more_settings" |
| 140 | android:layout_width="wrap_content" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 141 | android:layout_height="48dp" |
| 142 | style="@style/TextAppearance.NotificationGuts.Button" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 143 | android:background="@drawable/btn_borderless_rect" |
| 144 | android:gravity="center" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 145 | android:paddingEnd="8dp" |
| 146 | android:paddingStart="8dp" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 147 | android:focusable="true" /> |
| 148 | |
| 149 | <TextView |
| 150 | android:id="@+id/done" |
| 151 | android:text="@string/notification_done" |
| 152 | android:layout_width="wrap_content" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 153 | android:layout_height="48dp" |
| 154 | style="@style/TextAppearance.NotificationGuts.Button" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 155 | android:background="@drawable/btn_borderless_rect" |
| 156 | android:gravity="center" |
Julia Reynolds | 2050536 | 2016-01-12 08:47:04 -0500 | [diff] [blame] | 157 | android:layout_marginStart="8dp" |
| 158 | android:layout_marginEnd="8dp" |
Julia Reynolds | 5682192 | 2016-01-04 15:24:01 -0500 | [diff] [blame] | 159 | android:focusable="true"/> |
| 160 | </LinearLayout> |
Selim Cinek | 024ca59 | 2014-09-01 15:11:28 +0200 | [diff] [blame] | 161 | </com.android.systemui.statusbar.NotificationGuts> |