Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  * Copyright (C) 2010 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 
     18 <!-- TabletStatusBarView extends FrameLayout -->
     19 <com.android.systemui.statusbar.tablet.TabletStatusBarView
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
     22     android:background="@drawable/status_bar_background"
     23     >
     24     
     25     <FrameLayout
     26         android:id="@+id/bar_contents_holder"
     27         android:layout_width="match_parent"
     28         android:layout_height="@*android:dimen/status_bar_height"
     29         android:layout_gravity="bottom"
     30         >
     31         <RelativeLayout
     32             android:id="@+id/bar_contents"
     33             android:layout_width="match_parent"
     34             android:layout_height="match_parent"
     35             android:clipChildren="false"
     36             >
     37 
     38             <!-- notification icons & panel access -->
     39             <include layout="@layout/status_bar_notification_area" 
     40                 android:layout_width="wrap_content"
     41                 android:layout_height="match_parent"
     42                 android:layout_alignParentRight="true"
     43                 android:layout_marginTop="1dp"
     44                 />
     45 
     46             <!-- navigation controls -->
     47             <LinearLayout
     48                 android:id="@+id/navigationArea"
     49                 android:layout_width="wrap_content"
     50                 android:layout_height="match_parent"
     51                 android:layout_alignParentLeft="true"
     52                 android:orientation="horizontal"
     53                 android:clipChildren="false"
     54                 android:clipToPadding="false"
     55                 >
     56                 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
     57                     android:layout_width="80dip"
     58                     android:layout_height="match_parent"
     59                     android:src="@drawable/ic_sysbar_back"
     60                     systemui:keyCode="4"
     61                     android:contentDescription="@string/accessibility_back"
     62                     systemui:glowBackground="@drawable/ic_sysbar_highlight"
     63                     />
     64                 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
     65                     android:layout_width="80dip"
     66                     android:layout_height="match_parent"
     67                     android:src="@drawable/ic_sysbar_home"
     68                     systemui:keyCode="3"
     69                     android:contentDescription="@string/accessibility_home"
     70                     systemui:glowBackground="@drawable/ic_sysbar_highlight"
     71                     />
     72                 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
     73                     android:layout_width="80dip"
     74                     android:layout_height="match_parent"
     75                     android:src="@drawable/ic_sysbar_recent"
     76                     android:contentDescription="@string/accessibility_recent"
     77                     systemui:glowBackground="@drawable/ic_sysbar_highlight"
     78                     />
     79                 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
     80                     android:layout_width="80dip"
     81                     android:layout_height="match_parent"
     82                     android:src="@drawable/ic_sysbar_menu"
     83                     systemui:keyCode="82"
     84                     android:visibility="invisible"
     85                     android:contentDescription="@string/accessibility_menu"
     86                     systemui:glowBackground="@drawable/ic_sysbar_highlight"
     87                     />
     88             </LinearLayout>
     89 
     90             <!-- fake space bar zone -->
     91             <com.android.systemui.statusbar.policy.EventHole android:id="@+id/fake_space_bar"
     92                 android:layout_height="match_parent"
     93                 android:layout_width="0dp"
     94                 android:paddingLeft="8dip"
     95                 android:paddingRight="8dip"
     96                 android:layout_toRightOf="@+id/navigationArea"
     97                 android:layout_toLeftOf="@+id/notificationArea"
     98                 android:visibility="gone"
     99                 />
    100         </RelativeLayout>
    101     </FrameLayout>
    102 
    103     <FrameLayout
    104         android:id="@+id/bar_shadow_holder"
    105         android:layout_width="match_parent"
    106         android:layout_height="@*android:dimen/status_bar_height"
    107         android:layout_gravity="bottom"
    108         >
    109         <!-- lights out shade -->
    110         <RelativeLayout
    111             android:id="@+id/bar_shadow"
    112             android:layout_width="match_parent"
    113             android:layout_height="match_parent"
    114             android:background="#FF000000"
    115             android:visibility="gone"
    116             >
    117             <ImageView
    118                 android:id="@+id/dot0"
    119                 android:layout_width="80dip"
    120                 android:layout_height="48dip"
    121                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    122                 android:layout_alignParentLeft="true"
    123                 android:layout_alignParentBottom="true"
    124                 />
    125             <ImageView
    126                 android:id="@+id/dot1"
    127                 android:layout_width="80dip"
    128                 android:layout_height="48dip"
    129                 android:src="@drawable/ic_sysbar_lights_out_dot_large"
    130                 android:layout_toRightOf="@+id/dot0"
    131                 android:layout_alignParentBottom="true"
    132                 />
    133             <ImageView
    134                 android:id="@+id/dot2"
    135                 android:layout_width="80dip"
    136                 android:layout_height="48dip"
    137                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    138                 android:layout_toRightOf="@+id/dot1"
    139                 android:layout_alignParentBottom="true"
    140                 />
    141             <ImageView
    142                 android:id="@+id/dot3"
    143                 android:layout_width="80dip"
    144                 android:layout_height="48dip"
    145                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    146                 android:layout_alignParentRight="true"
    147                 android:layout_alignParentBottom="true"
    148                 />
    149         </RelativeLayout>
    150     </FrameLayout>
    151 </com.android.systemui.statusbar.tablet.TabletStatusBarView>
    152