Home | History | Annotate | Download | only in layout-sw600dp
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 **
      4 ** Copyright 2012, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License"); 
      7 ** you may not use this file except in compliance with the License. 
      8 ** You may obtain a copy of the License at 
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0 
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software 
     13 ** distributed under the License is distributed on an "AS IS" BASIS, 
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     15 ** See the License for the specific language governing permissions and 
     16 ** limitations under the License.
     17 -->
     18 
     19 <!--  navigation bar for sw600dp (small tablets) -->
     20 <com.android.systemui.statusbar.phone.NavigationBarView
     21     xmlns:android="http://schemas.android.com/apk/res/android"
     22     xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
     23     android:layout_height="match_parent"
     24     android:layout_width="match_parent"
     25     android:background="#FF000000"
     26     >
     27 
     28     <FrameLayout android:id="@+id/rot0"
     29         android:layout_height="match_parent"
     30         android:layout_width="match_parent"
     31         >
     32 
     33         <LinearLayout
     34             android:layout_height="match_parent"
     35             android:layout_width="match_parent"
     36             android:orientation="horizontal"
     37             android:clipChildren="false"
     38             android:clipToPadding="false"
     39             android:id="@+id/nav_buttons"
     40             android:animateLayoutChanges="true"
     41             >
     42 
     43             <!-- navigation controls -->
     44             <View
     45                 android:layout_width="48dp"
     46                 android:layout_height="match_parent"
     47                 android:layout_weight="0"
     48                 android:layout_marginLeft="2dp"
     49                 android:visibility="invisible"
     50                 />
     51             <Space 
     52                 android:layout_width="match_parent"
     53                 android:layout_height="match_parent"
     54                 android:layout_weight="1"
     55                 />
     56             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
     57                 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
     58                 android:layout_height="match_parent"
     59                 android:src="@drawable/ic_sysbar_back"
     60                 systemui:keyCode="4"
     61                 android:layout_weight="0"
     62                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
     63                 android:contentDescription="@string/accessibility_back"
     64                 />
     65             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
     66                 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
     67                 android:layout_height="match_parent"
     68                 android:src="@drawable/ic_sysbar_home"
     69                 systemui:keyCode="3"
     70                 systemui:keyRepeat="true"
     71                 android:layout_weight="0"
     72                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
     73                 android:contentDescription="@string/accessibility_home"
     74                 />
     75             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
     76                 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
     77                 android:layout_height="match_parent"
     78                 android:src="@drawable/ic_sysbar_recent"
     79                 android:layout_weight="0"
     80                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
     81                 android:contentDescription="@string/accessibility_recent"
     82                 />
     83             <Space 
     84                 android:layout_width="match_parent"
     85                 android:layout_height="match_parent"
     86                 android:layout_weight="1"
     87                 />
     88             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
     89                 android:layout_width="48dp"
     90                 android:layout_height="match_parent"
     91                 android:src="@drawable/ic_sysbar_menu"
     92                 android:layout_marginRight="2dp"
     93                 systemui:keyCode="82"
     94                 android:layout_weight="0"
     95                 android:visibility="invisible"
     96                 android:contentDescription="@string/accessibility_menu"
     97                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
     98                 />
     99         </LinearLayout>
    100 
    101         <!-- lights out layout to match exactly -->
    102         <LinearLayout
    103             android:layout_height="match_parent"
    104             android:layout_width="match_parent"
    105             android:orientation="horizontal"
    106             android:id="@+id/lights_out"
    107             android:visibility="gone"
    108             >
    109             <Space 
    110                 android:layout_width="match_parent"
    111                 android:layout_height="match_parent"
    112                 android:layout_weight="1"
    113                 />
    114             <ImageView
    115                 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
    116                 android:layout_height="match_parent"
    117                 android:layout_marginLeft="40dp"
    118                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    119                 android:scaleType="center"
    120                 android:layout_weight="0"
    121                 />
    122             <ImageView
    123                 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
    124                 android:layout_height="match_parent"
    125                 android:src="@drawable/ic_sysbar_lights_out_dot_large"
    126                 android:scaleType="center"
    127                 android:layout_weight="0"
    128                 />
    129             <ImageView
    130                 android:layout_width="128dp" android:paddingLeft="25dp" android:paddingRight="25dp"
    131                 android:layout_marginRight="40dp"
    132                 android:layout_height="match_parent"
    133                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    134                 android:scaleType="center"
    135                 android:layout_weight="0"
    136                 />
    137             <Space 
    138                 android:layout_width="match_parent"
    139                 android:layout_height="match_parent"
    140                 android:layout_weight="1"
    141                 />
    142         </LinearLayout>
    143 
    144         <com.android.systemui.statusbar.policy.DeadZone
    145             android:id="@+id/deadzone"
    146             android:layout_height="@dimen/navigation_bar_deadzone_size"
    147             android:layout_width="match_parent"
    148             android:layout_gravity="top"
    149             />
    150     </FrameLayout>
    151 
    152     <FrameLayout android:id="@+id/rot90"
    153         android:layout_height="match_parent"
    154         android:layout_width="match_parent"
    155         android:visibility="gone"
    156         android:paddingTop="0dp"
    157         >
    158 
    159         <LinearLayout
    160             android:layout_height="match_parent"
    161             android:layout_width="match_parent"
    162             android:orientation="horizontal"
    163             android:clipChildren="false"
    164             android:clipToPadding="false"
    165             android:id="@+id/nav_buttons"
    166             android:animateLayoutChanges="true"
    167             >
    168 
    169             <!-- navigation controls -->
    170             <View
    171                 android:layout_width="48dp"
    172                 android:layout_height="match_parent"
    173                 android:layout_weight="0"
    174                 android:layout_marginLeft="2dp"
    175                 android:visibility="invisible"
    176                 />
    177             <Space 
    178                 android:layout_width="match_parent"
    179                 android:layout_height="match_parent"
    180                 android:layout_weight="1"
    181                 />
    182             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
    183                 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
    184                 android:layout_height="match_parent"
    185                 android:src="@drawable/ic_sysbar_back"
    186                 systemui:keyCode="4"
    187                 android:layout_weight="0"
    188                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    189                 android:contentDescription="@string/accessibility_back"
    190                 />
    191             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
    192                 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
    193                 android:layout_height="match_parent"
    194                 android:src="@drawable/ic_sysbar_home"
    195                 systemui:keyCode="3"
    196                 systemui:keyRepeat="true"
    197                 android:layout_weight="0"
    198                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    199                 android:contentDescription="@string/accessibility_home"
    200                 />
    201             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
    202                 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
    203                 android:layout_height="match_parent"
    204                 android:src="@drawable/ic_sysbar_recent"
    205                 android:layout_weight="0"
    206                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    207                 android:contentDescription="@string/accessibility_recent"
    208                 />
    209             <Space 
    210                 android:layout_width="match_parent"
    211                 android:layout_height="match_parent"
    212                 android:layout_weight="1"
    213                 />
    214             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
    215                 android:layout_width="48dp"
    216                 android:layout_height="match_parent"
    217                 android:layout_marginRight="2dp"
    218                 android:src="@drawable/ic_sysbar_menu"
    219                 systemui:keyCode="82"
    220                 android:layout_weight="0"
    221                 android:visibility="invisible"
    222                 android:contentDescription="@string/accessibility_menu"
    223                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    224                 />
    225         </LinearLayout>
    226 
    227         <!-- lights out layout to match exactly -->
    228         <LinearLayout
    229             android:layout_height="match_parent"
    230             android:layout_width="match_parent"
    231             android:orientation="horizontal"
    232             android:id="@+id/lights_out"
    233             android:visibility="gone"
    234             >
    235             <Space 
    236                 android:layout_width="match_parent"
    237                 android:layout_height="match_parent"
    238                 android:layout_weight="1"
    239                 />
    240             <ImageView
    241                 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
    242                 android:layout_height="match_parent"
    243                 android:layout_marginLeft="40dp"
    244                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    245                 android:scaleType="center"
    246                 android:layout_weight="0"
    247                 />
    248             <ImageView
    249                 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
    250                 android:layout_height="match_parent"
    251                 android:src="@drawable/ic_sysbar_lights_out_dot_large"
    252                 android:scaleType="center"
    253                 android:layout_weight="0"
    254                 />
    255             <ImageView
    256                 android:layout_width="162dp" android:paddingLeft="42dp" android:paddingRight="42dp"
    257                 android:layout_marginRight="40dp"
    258                 android:layout_height="match_parent"
    259                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    260                 android:scaleType="center"
    261                 android:layout_weight="0"
    262                 />
    263             <Space 
    264                 android:layout_width="match_parent"
    265                 android:layout_height="match_parent"
    266                 android:layout_weight="1"
    267                 />
    268         </LinearLayout>
    269 
    270         <com.android.systemui.statusbar.policy.DeadZone
    271             android:id="@+id/deadzone"
    272             android:layout_height="@dimen/navigation_bar_deadzone_size"
    273             android:layout_width="match_parent"
    274             android:layout_gravity="top"
    275             />
    276     </FrameLayout>
    277 
    278     <!-- not used -->
    279     <View android:id="@+id/rot270"
    280         android:layout_height="match_parent"
    281         android:layout_width="match_parent"
    282         android:visibility="gone"
    283         />
    284 
    285 </com.android.systemui.statusbar.phone.NavigationBarView>
    286