Home | History | Annotate | Download | only in layout
      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/content_parent"
     22     android:layout_height="match_parent"
     23     android:layout_width="match_parent"
     24     android:gravity="right"
     25     >
     26 
     27     <!-- 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"
     32         android:layout_alignParentRight="true"
     33         android:layout_alignParentBottom="true"
     34         />
     35 
     36     <LinearLayout
     37         android:id="@+id/content_frame"
     38         android:background="@drawable/notification_panel_bg"
     39         android:layout_height="wrap_content"
     40         android:layout_width="478dp"
     41         android:orientation="vertical"
     42         android:layout_alignParentRight="true"
     43         android:layout_above="@id/system_bar_notification_panel_bottom_space"
     44         android:paddingBottom="8dp"
     45         >
     46 
     47         <include layout="@layout/system_bar_notification_panel_title"
     48             android:layout_width="match_parent"
     49             android:layout_height="130dp"
     50             android:layout_above="@id/content_frame"
     51             android:layout_alignParentRight="true"
     52             android:layout_weight="0"
     53             />
     54 
     55         <ScrollView
     56 
     57             android:id="@+id/notification_scroller"
     58             android:layout_height="wrap_content"
     59             android:layout_width="match_parent"
     60             android:layout_weight="1"
     61             >
     62             <com.android.systemui.statusbar.policy.NotificationRowLayout
     63                 android:id="@+id/content"
     64                 android:layout_width="match_parent"
     65                 android:layout_height="wrap_content"
     66                 android:gravity="center_horizontal|bottom"
     67                 android:clickable="true"
     68                 android:focusable="true"
     69                 android:descendantFocusability="afterDescendants"
     70                 systemui:rowHeight="@dimen/notification_row_min_height"
     71                 />
     72         </ScrollView>
     73     </LinearLayout>
     74 </com.android.systemui.statusbar.tablet.NotificationPanel>
     75