system_bar_notification_panel.xml revision 4a066c5c77109431f50806fc29179d28f1472871
1<!--
2  Copyright (C) 2006 The Android Open Source Project
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8       http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15-->
16
17<!--    android:background="@drawable/system_bar_closed_default_background" -->
18<com.android.systemui.statusbar.tablet.NotificationPanel
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
21    android:id="@+id/panel_root"
22    android:layout_height="match_parent"
23    android:layout_width="match_parent"
24    android:gravity="right"
25    >
26
27    <ImageView android:id="@+id/clear_all_button"
28        android:layout_width="wrap_content"
29        android:layout_height="@*android:dimen/system_bar_height"
30        android:layout_alignParentRight="true"
31        android:layout_alignParentBottom="true"
32        android:layout_marginRight="20dp"
33        android:paddingLeft="15dp"
34        android:paddingRight="15dp"
35        android:src="@drawable/ic_notify_clear"
36        android:visibility="invisible"
37        android:contentDescription="@string/accessibility_clear_all"
38        />
39
40    <RelativeLayout
41        android:id="@+id/content_parent"
42        android:layout_height="wrap_content"
43        android:layout_width="match_parent"
44        android:layout_alignParentBottom="true"
45        android:layout_alignParentRight="true"
46        android:layout_marginBottom="8dp"
47        >
48
49        <include layout="@layout/system_bar_notification_panel_title"
50            android:layout_width="478dp"
51            android:layout_height="224dp"
52            android:layout_alignParentTop="true"
53            android:layout_alignParentRight="true"
54            />
55
56        <LinearLayout
57            android:id="@+id/content_frame"
58            android:background="@drawable/notify_panel_notify_bg"
59            android:layout_height="wrap_content"
60            android:layout_width="478dp"
61            android:orientation="vertical"
62            android:layout_alignParentRight="true"
63            android:layout_alignParentTop="true"
64            android:layout_marginTop="178dp"
65            >
66            <ScrollView
67                android:id="@+id/notification_scroller"
68                android:layout_height="wrap_content"
69                android:layout_width="match_parent"
70                android:layout_weight="1"
71                >
72                <com.android.systemui.statusbar.policy.NotificationRowLayout
73                    android:id="@+id/content"
74                    android:layout_width="match_parent"
75                    android:layout_height="wrap_content"
76                    android:gravity="center_horizontal|bottom"
77                    android:clickable="true"
78                    android:focusable="true"
79                    android:descendantFocusability="afterDescendants"
80                    systemui:rowHeight="@dimen/notification_height"
81                    />
82            </ScrollView>
83        </LinearLayout>
84    </RelativeLayout>
85
86</com.android.systemui.statusbar.tablet.NotificationPanel>
87