| <?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"> |
| |
| <!-- Package Info --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:orientation="horizontal" |
| android:paddingTop="16dp" |
| android:paddingBottom="16dp" > |
| <ImageView |
| android:id="@+id/pkgicon" |
| android:layout_width="18dp" |
| android:layout_height="18dp" |
| android:layout_marginEnd="6dp" |
| android:contentDescription="@null" |
| android:scaleType="fitCenter" /> |
| <TextView |
| android:id="@+id/pkgname" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| style="@style/TextAppearance.NotificationGuts.Secondary" /> |
| <TextView |
| android:id="@+id/pkg_group_divider" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:text="@string/notification_header_divider_symbol_with_spaces"/> |
| <TextView |
| android:id="@+id/group_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| style="@style/TextAppearance.NotificationGuts.Secondary" /> |
| </LinearLayout> |
| |
| <!-- Channel Info --> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingBottom="8dp" |
| android:orientation="horizontal"> |
| <TextView |
| android:id="@+id/channel_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| 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_gravity="end" |
| android:layout_weight="1" |
| android:background="@null" /> |
| </LinearLayout> |
| |
| <!-- Secondary Text - only one shows at a time --> |
| <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.SecondaryWarning" /> |
| <TextView |
| android:id="@+id/num_channels_desc" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| 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> |