blob: 58a6de36fc589782c3c546a7ed037f1513448161 [file] [log] [blame]
Daniel Sandler9120d552010-07-23 09:11:14 -04001<!--
Joe Onorato4cddc982010-11-21 11:48:15 -08002 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.
Daniel Sandler9120d552010-07-23 09:11:14 -040015-->
16
Daniel Sandler4a066c52012-04-20 14:49:13 -040017<!-- android:background="@drawable/system_bar_closed_default_background" -->
Joe Onoratoddf680b2010-09-26 13:59:40 -070018<com.android.systemui.statusbar.tablet.NotificationPanel
Daniel Sandler9120d552010-07-23 09:11:14 -040019 xmlns:android="http://schemas.android.com/apk/res/android"
Joe Onorato7c270fa2010-12-08 17:31:42 -080020 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
Chris Wren1e8f65d2012-06-06 18:08:56 -040021 android:id="@+id/content_parent"
Joe Onoratocf2b1992010-11-16 21:36:42 -080022 android:layout_height="match_parent"
Joe Onorato4cddc982010-11-21 11:48:15 -080023 android:layout_width="match_parent"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070024 android:gravity="end"
Daniel Sandler9120d552010-07-23 09:11:14 -040025 >
Daniel Sandler0f0b11c2010-08-04 15:54:58 -040026
Chris Wren1e8f65d2012-06-06 18:08:56 -040027 <!-- lift the panel up off the status bar while leaving a touchable are -->
28 <Space
29 android:id="@+id/system_bar_notification_panel_bottom_space"
30 android:layout_height="56dp"
31 android:layout_width="478dp"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070032 android:layout_alignParentEnd="true"
Daniel Sandler06a0d4b2011-08-05 00:19:21 -040033 android:layout_alignParentBottom="true"
Daniel Sandler06a0d4b2011-08-05 00:19:21 -040034 />
35
Chris Wren1e8f65d2012-06-06 18:08:56 -040036 <LinearLayout
37 android:id="@+id/content_frame"
38 android:background="@drawable/notification_panel_bg"
Joe Onorato8a576712010-11-15 16:50:34 -080039 android:layout_height="wrap_content"
Chris Wren1e8f65d2012-06-06 18:08:56 -040040 android:layout_width="478dp"
41 android:orientation="vertical"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070042 android:layout_alignParentEnd="true"
Chris Wren1e8f65d2012-06-06 18:08:56 -040043 android:layout_above="@id/system_bar_notification_panel_bottom_space"
44 android:paddingBottom="8dp"
Daniel Sandler9120d552010-07-23 09:11:14 -040045 >
Daniel Sandler2f447aa2011-01-14 16:39:19 -050046
Daniel Sandler4a066c52012-04-20 14:49:13 -040047 <include layout="@layout/system_bar_notification_panel_title"
Chris Wren1e8f65d2012-06-06 18:08:56 -040048 android:layout_width="match_parent"
49 android:layout_height="130dp"
50 android:layout_above="@id/content_frame"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070051 android:layout_alignParentEnd="true"
Chris Wren1e8f65d2012-06-06 18:08:56 -040052 android:layout_weight="0"
Daniel Sandler2f447aa2011-01-14 16:39:19 -050053 />
Joe Onorato7c270fa2010-12-08 17:31:42 -080054
Chris Wren1e8f65d2012-06-06 18:08:56 -040055 <ScrollView
Daniel Sandler7d9ea8c2011-01-11 10:28:58 -050056
Chris Wren1e8f65d2012-06-06 18:08:56 -040057 android:id="@+id/notification_scroller"
58 android:layout_height="wrap_content"
59 android:layout_width="match_parent"
Chris Wren3c148f12012-06-19 13:10:25 -040060 android:overScrollMode="ifContentScrolls"
Chris Wren1e8f65d2012-06-06 18:08:56 -040061 android:layout_weight="1"
62 >
63 <com.android.systemui.statusbar.policy.NotificationRowLayout
64 android:id="@+id/content"
65 android:layout_width="match_parent"
66 android:layout_height="wrap_content"
67 android:gravity="center_horizontal|bottom"
68 android:clickable="true"
69 android:focusable="true"
70 android:descendantFocusability="afterDescendants"
71 systemui:rowHeight="@dimen/notification_row_min_height"
72 />
73 </ScrollView>
74 </LinearLayout>
Joe Onoratoddf680b2010-09-26 13:59:40 -070075</com.android.systemui.statusbar.tablet.NotificationPanel>