| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2015 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 |
| --> |
| |
| <NotificationHeaderView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/notification_header" |
| android:orientation="horizontal" |
| android:layout_width="wrap_content" |
| android:layout_height="48dp" |
| android:clipChildren="false" |
| android:layout_gravity="start|top" |
| android:gravity="center_vertical" |
| android:paddingTop="5dp" |
| android:paddingBottom="16dp" |
| android:paddingStart="@dimen/notification_content_margin_start" |
| android:paddingEnd="16dp"> |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="18dp" |
| android:layout_height="18dp" |
| android:layout_marginEnd="3dp" |
| /> |
| <TextView |
| android:id="@+id/number_of_children" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification" |
| android:layout_marginEnd="3dp" |
| android:layout_marginStart="2dp" |
| android:visibility="gone" |
| android:singleLine="true" |
| /> |
| <TextView |
| android:id="@+id/app_name_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="3dp" |
| android:layout_marginEnd="2dp" |
| android:singleLine="true" |
| /> |
| <TextView |
| android:id="@+id/sub_text_divider" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:text="@string/notification_header_divider_symbol" |
| android:visibility="gone"/> |
| <TextView |
| android:id="@+id/header_sub_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:visibility="gone" |
| android:singleLine="true"/> |
| <TextView |
| android:id="@+id/content_info_divider" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:text="@string/notification_header_divider_symbol" |
| android:singleLine="true" |
| android:visibility="gone"/> |
| <TextView |
| android:id="@+id/header_content_info" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:visibility="gone" |
| android:maxWidth="72dp" |
| android:singleLine="true"/> |
| <TextView |
| android:id="@+id/time_divider" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="@style/TextAppearance.Material.Notification.Info" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:text="@string/notification_header_divider_symbol" |
| android:singleLine="true" |
| android:visibility="gone"/> |
| <ViewStub |
| android:id="@+id/time" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:layout="@layout/notification_template_part_time" |
| android:visibility="gone" |
| /> |
| <ViewStub |
| android:id="@+id/chronometer" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:layout="@layout/notification_template_part_chronometer" |
| android:visibility="gone" |
| /> |
| <ImageView |
| android:id="@+id/expand_button" |
| android:background="@null" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:paddingTop="1dp" |
| android:visibility="gone" |
| /> |
| </NotificationHeaderView> |
| |