| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2017, The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <com.android.systemui.statusbar.NotificationInfo |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:id="@+id/notification_guts" |
| android:clickable="true" |
| android:gravity="top|start" |
| android:orientation="vertical" |
| android:paddingStart="@*android:dimen/notification_content_margin_start" |
| android:paddingEnd="8dp" |
| android:background="@color/notification_guts_bg_color" |
| android:theme="@*android:style/Theme.DeviceDefault.Light"> |
| |
| <!-- header --> |
| <RelativeLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingTop="20dp" |
| android:paddingEnd="8dp" |
| android:paddingBottom="15dp" |
| android:id="@+id/notification_guts_header"> |
| <TextView |
| android:id="@+id/pkgname" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| style="@style/TextAppearance.NotificationGuts.Secondary" /> |
| <TextView |
| android:id="@+id/channel_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentStart="true" |
| android:layout_below="@id/pkgname" |
| style="@style/TextAppearance.NotificationGuts.Header" /> |
| <Switch |
| android:id="@+id/channel_enabled_switch" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentRight="true" |
| android:layout_centerVertical="true" |
| android:background="@null" /> |
| </RelativeLayout> |
| <!-- Importance radio buttons --> |
| <LinearLayout |
| android:id="@+id/importance" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal"> |
| <RadioGroup |
| android:id="@+id/importance_buttons" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:paddingEnd="@*android:dimen/notification_content_margin_end"> |
| <RadioButton |
| android:id="@+id/high_importance" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/notification_inline_importance_height" |
| style="@style/TextAppearance.NotificationGuts.Radio" |
| android:buttonTint="@color/notification_guts_buttons" /> |
| <RadioButton |
| android:id="@+id/default_importance" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/notification_inline_importance_height" |
| style="@style/TextAppearance.NotificationGuts.Radio" |
| android:buttonTint="@color/notification_guts_buttons" /> |
| <RadioButton |
| android:id="@+id/low_importance" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/notification_inline_importance_height" |
| style="@style/TextAppearance.NotificationGuts.Radio" |
| android:buttonTint="@color/notification_guts_buttons" /> |
| <RadioButton |
| android:id="@+id/min_importance" |
| android:layout_width="wrap_content" |
| android:layout_height="@dimen/notification_inline_importance_height" |
| style="@style/TextAppearance.NotificationGuts.Radio" |
| android:buttonTint="@color/notification_guts_buttons" /> |
| </RadioGroup> |
| <LinearLayout |
| android:id="@+id/importance_buttons_text" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| <include layout="@layout/notification_guts_importance_text"/> |
| <include layout="@layout/notification_guts_importance_text"/> |
| <include layout="@layout/notification_guts_importance_text"/> |
| <include layout="@layout/notification_guts_importance_text"/> |
| </LinearLayout> |
| </LinearLayout> |
| <!-- Channel Disabled Text --> |
| <TextView |
| android:id="@+id/channel_disabled" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:text="@string/notification_channel_disabled" |
| style="@style/TextAppearance.NotificationGuts.Secondary" /> |
| <!-- Settings and Done buttons --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="end" |
| android:paddingTop="16dp" |
| android:paddingBottom="8dp" > |
| |
| <TextView |
| android:id="@+id/more_settings" |
| android:text="@string/notification_more_settings" |
| android:layout_width="wrap_content" |
| android:layout_height="36dp" |
| style="@style/TextAppearance.NotificationGuts.Button" |
| android:background="@drawable/btn_borderless_rect" |
| android:gravity="center" |
| android:paddingEnd="8dp" |
| android:paddingStart="8dp" |
| android:focusable="true" /> |
| |
| <TextView |
| android:id="@+id/done" |
| android:text="@string/notification_done" |
| android:layout_width="wrap_content" |
| android:layout_height="36dp" |
| style="@style/TextAppearance.NotificationGuts.Button" |
| android:background="@drawable/btn_borderless_rect" |
| android:gravity="center" |
| android:layout_marginStart="8dp" |
| android:layout_marginEnd="8dp" |
| android:focusable="true"/> |
| </LinearLayout> |
| </com.android.systemui.statusbar.NotificationInfo> |