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 18<com.android.systemui.statusbar.NotificationGuts 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" 27 android:paddingStart="@*android:dimen/notification_content_margin_start" 28 android:paddingEnd="8dp" 29 android:background="@color/notification_guts_bg_color"> 30 31 <!-- header --> 32 <LinearLayout 33 android:layout_width="match_parent" 34 android:layout_height="wrap_content" 35 android:paddingTop="15dp" 36 android:paddingEnd="8dp" 37 android:id="@+id/notification_guts_header" 38 android:orientation="horizontal" 39 android:layout_gravity="start"> 40 41 <ImageView 42 android:id="@+id/app_icon" 43 android:layout_width="18dp" 44 android:layout_height="18dp" 45 android:layout_marginEnd="6dp" 46 android:src="@android:drawable/arrow_down_float" /> 47 <TextView 48 android:id="@+id/pkgname" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 style="@style/TextAppearance.NotificationGuts.Header" /> 52 <TextView 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" /> 60 </LinearLayout> 61 <!-- Importance radio buttons --> 62 <RadioGroup 63 android:id="@+id/importance_buttons" 64 android:layout_width="match_parent" 65 android:layout_height="wrap_content" 66 android:paddingStart="3dp" 67 android:paddingTop="4dp" 68 android:paddingEnd="8dp" > 69 <RadioButton 70 android:id="@+id/silent_importance" 71 android:layout_width="wrap_content" 72 android:layout_height="40dp" 73 android:paddingStart="22dp" 74 android:text="@string/show_silently" 75 style="@style/TextAppearance.NotificationGuts.Radio" 76 android:buttonTint="@color/notification_guts_buttons" /> 77 <RadioButton 78 android:id="@+id/block_importance" 79 android:layout_width="wrap_content" 80 android:layout_height="40dp" 81 android:paddingStart="22dp" 82 android:text="@string/block" 83 style="@style/TextAppearance.NotificationGuts.Radio" 84 android:buttonTint="@color/notification_guts_buttons" /> 85 <RadioButton 86 android:id="@+id/reset_importance" 87 android:layout_width="wrap_content" 88 android:layout_height="40dp" 89 android:paddingStart="22dp" 90 style="@style/TextAppearance.NotificationGuts.Radio" 91 android:buttonTint="@color/notification_guts_buttons" /> 92 </RadioGroup> 93 <!-- Importance slider --> 94 <LinearLayout 95 android:id="@+id/importance_slider" 96 android:layout_width="match_parent" 97 android:layout_height="wrap_content" 98 android:gravity="center_vertical" 99 android:orientation="vertical" 100 android:clickable="false" 101 android:focusable="false" 102 android:paddingEnd="8dp" 103 android:paddingTop="4dp" 104 android:visibility="gone"> 105 <TextView 106 android:id="@+id/title" 107 android:layout_width="match_parent" 108 android:layout_height="wrap_content" 109 android:singleLine="true" 110 style="@style/TextAppearance.NotificationGuts.Primary" 111 android:ellipsize="marquee" 112 android:fadingEdge="horizontal" 113 android:paddingBottom="2dp"/> 114 115 <TextView 116 android:id="@+id/summary" 117 android:layout_width="match_parent" 118 android:layout_height="wrap_content" 119 android:layout_alignStart="@android:id/title" 120 android:textAlignment="viewStart" 121 style="@style/TextAppearance.NotificationGuts.Secondary" 122 android:maxLines="3" 123 android:minLines="2" 124 android:paddingBottom="4dp" /> 125 126 <FrameLayout 127 android:layout_width="match_parent" 128 android:layout_height="wrap_content" 129 android:paddingTop="8dp" > 130 131 <ImageView 132 android:id="@+id/auto_importance" 133 android:src="@drawable/notification_auto_importance" 134 android:layout_gravity="center_vertical|start" 135 android:layout_width="48dp" 136 android:layout_height="48dp" /> 137 138 <SeekBar 139 android:id="@+id/seekbar" 140 android:layout_marginStart="56dp" 141 android:layout_marginEnd="32dp" 142 android:layout_gravity="center_vertical" 143 android:layout_width="match_parent" 144 android:layout_height="48dp" 145 android:focusable="true" 146 android:background="#00ffffff" 147 android:progressBackgroundTint="@color/notification_guts_secondary_slider_color" 148 android:thumbTint="@color/notification_guts_slider_color" 149 android:progressTint="@color/notification_guts_slider_color" 150 style="@android:style/Widget.Material.SeekBar.Discrete" 151 android:tickMarkTint="@android:color/black" /> 152 153 </FrameLayout> 154 </LinearLayout> 155 <!-- buttons --> 156 <LinearLayout 157 android:layout_width="match_parent" 158 android:layout_height="wrap_content" 159 android:gravity="end" 160 android:paddingTop="16dp" 161 android:paddingBottom="8dp" > 162 163 <TextView 164 android:id="@+id/more_settings" 165 android:text="@string/notification_more_settings" 166 android:layout_width="wrap_content" 167 android:layout_height="36dp" 168 style="@style/TextAppearance.NotificationGuts.Button" 169 android:background="@drawable/btn_borderless_rect" 170 android:gravity="center" 171 android:paddingEnd="8dp" 172 android:paddingStart="8dp" 173 android:focusable="true" /> 174 175 <TextView 176 android:id="@+id/done" 177 android:text="@string/notification_done" 178 android:layout_width="wrap_content" 179 android:layout_height="36dp" 180 style="@style/TextAppearance.NotificationGuts.Button" 181 android:background="@drawable/btn_borderless_rect" 182 android:gravity="center" 183 android:layout_marginStart="8dp" 184 android:layout_marginEnd="8dp" 185 android:focusable="true"/> 186 </LinearLayout> 187</com.android.systemui.statusbar.NotificationGuts> 188