1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:id="@+id/notifications_panel_view"
19    android:layout_width="@dimen/notification_panel_width"
20    android:layout_height="match_parent"
21    android:layout_gravity="end"
22    android:animateLayoutChanges="true"
23    android:background="@color/notification_panel_background"
24    android:orientation="vertical">
25
26    <FrameLayout
27        android:layout_width="match_parent"
28        android:layout_height="wrap_content"
29        android:background="?attr/defaultBrandColor"
30        android:elevation="@dimen/lb_preference_decor_title_container_elevation"
31        android:transitionGroup="false">
32
33        <TextView
34            android:layout_width="match_parent"
35            android:layout_height="@dimen/lb_preference_decor_title_text_height"
36            android:layout_marginEnd="@dimen/lb_preference_decor_title_margin_end"
37            android:layout_marginStart="@dimen/lb_preference_decor_title_margin_start"
38            android:layout_marginTop="@dimen/lb_preference_decor_title_margin_top"
39            android:fontFamily="sans-serif-condensed"
40            android:gravity="center_vertical"
41            android:maxLines="1"
42            android:text="@string/system_notifications"
43            android:textColor="?android:attr/textColorPrimary"
44            android:textSize="@dimen/lb_preference_decor_title_text_size" />
45    </FrameLayout>
46
47    <TextView
48        android:id="@+id/no_notifications_message"
49        android:layout_width="wrap_content"
50        android:layout_height="wrap_content"
51        android:layout_gravity="center"
52        android:paddingBottom="@dimen/notification_panel_vertical_padding"
53        android:paddingEnd="@dimen/notification_panel_horizontal_padding"
54        android:paddingStart="@dimen/notification_panel_horizontal_padding"
55        android:paddingTop="@dimen/notification_panel_title_padding"
56        android:text="@string/no_notifications_message"
57        android:textColor="@color/secondary_text_color"
58        android:visibility="gone" />
59
60    <androidx.leanback.widget.VerticalGridView
61        android:id="@+id/notifications_list"
62        android:layout_width="match_parent"
63        android:layout_height="match_parent"
64        android:clipToPadding="false">
65
66        <requestFocus />
67    </androidx.leanback.widget.VerticalGridView>
68</LinearLayout>