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="@drawable/system_bar_background"
     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_marginStart="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:paddingStart="25dp" android:paddingEnd="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:paddingStart="25dp" android:paddingEnd="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:paddingStart="25dp" android:paddingEnd="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_marginEnd="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:paddingStart="25dp" android:paddingEnd="25dp"
    116                 android:layout_height="match_parent"
    117                 android:layout_marginStart="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:paddingStart="25dp" android:paddingEnd="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:paddingStart="25dp" android:paddingEnd="25dp"
    131                 android:layout_marginEnd="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.KeyButtonView
    145             android:layout_width="128dp"
    146             android:id="@+id/search_light"
    147             android:layout_height="match_parent"
    148             android:layout_gravity="center_horizontal"
    149             android:src="@drawable/search_light"
    150             android:scaleType="center"
    151             android:visibility="gone"
    152             android:contentDescription="@string/accessibility_search_light"
    153             />
    154 
    155         <com.android.systemui.statusbar.policy.DeadZone
    156             android:id="@+id/deadzone"
    157             android:layout_height="match_parent"
    158             android:layout_width="match_parent"
    159             systemui:minSize="@dimen/navigation_bar_deadzone_size"
    160             systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
    161             systemui:holdTime="@integer/navigation_bar_deadzone_hold"
    162             systemui:decayTime="@integer/navigation_bar_deadzone_decay"
    163             systemui:orientation="horizontal"
    164             android:layout_gravity="top"
    165             />
    166     </FrameLayout>
    167 
    168     <FrameLayout android:id="@+id/rot90"
    169         android:layout_height="match_parent"
    170         android:layout_width="match_parent"
    171         android:visibility="gone"
    172         android:paddingTop="0dp"
    173         >
    174 
    175         <LinearLayout
    176             android:layout_height="match_parent"
    177             android:layout_width="match_parent"
    178             android:orientation="horizontal"
    179             android:clipChildren="false"
    180             android:clipToPadding="false"
    181             android:id="@+id/nav_buttons"
    182             android:animateLayoutChanges="true"
    183             >
    184 
    185             <!-- navigation controls -->
    186             <View
    187                 android:layout_width="48dp"
    188                 android:layout_height="match_parent"
    189                 android:layout_weight="0"
    190                 android:layout_marginStart="2dp"
    191                 android:visibility="invisible"
    192                 />
    193             <Space 
    194                 android:layout_width="match_parent"
    195                 android:layout_height="match_parent"
    196                 android:layout_weight="1"
    197                 />
    198             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
    199                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    200                 android:layout_height="match_parent"
    201                 android:src="@drawable/ic_sysbar_back"
    202                 systemui:keyCode="4"
    203                 android:layout_weight="0"
    204                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    205                 android:contentDescription="@string/accessibility_back"
    206                 />
    207             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
    208                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    209                 android:layout_height="match_parent"
    210                 android:src="@drawable/ic_sysbar_home"
    211                 systemui:keyCode="3"
    212                 systemui:keyRepeat="true"
    213                 android:layout_weight="0"
    214                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    215                 android:contentDescription="@string/accessibility_home"
    216                 />
    217             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
    218                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    219                 android:layout_height="match_parent"
    220                 android:src="@drawable/ic_sysbar_recent"
    221                 android:layout_weight="0"
    222                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    223                 android:contentDescription="@string/accessibility_recent"
    224                 />
    225             <Space 
    226                 android:layout_width="match_parent"
    227                 android:layout_height="match_parent"
    228                 android:layout_weight="1"
    229                 />
    230             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
    231                 android:layout_width="48dp"
    232                 android:layout_height="match_parent"
    233                 android:layout_marginEnd="2dp"
    234                 android:src="@drawable/ic_sysbar_menu"
    235                 systemui:keyCode="82"
    236                 android:layout_weight="0"
    237                 android:visibility="invisible"
    238                 android:contentDescription="@string/accessibility_menu"
    239                 systemui:glowBackground="@drawable/ic_sysbar_highlight"
    240                 />
    241         </LinearLayout>
    242 
    243         <!-- lights out layout to match exactly -->
    244         <LinearLayout
    245             android:layout_height="match_parent"
    246             android:layout_width="match_parent"
    247             android:orientation="horizontal"
    248             android:id="@+id/lights_out"
    249             android:visibility="gone"
    250             >
    251             <Space 
    252                 android:layout_width="match_parent"
    253                 android:layout_height="match_parent"
    254                 android:layout_weight="1"
    255                 />
    256             <ImageView
    257                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    258                 android:layout_height="match_parent"
    259                 android:layout_marginStart="40dp"
    260                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    261                 android:scaleType="center"
    262                 android:layout_weight="0"
    263                 />
    264             <ImageView
    265                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    266                 android:layout_height="match_parent"
    267                 android:src="@drawable/ic_sysbar_lights_out_dot_large"
    268                 android:scaleType="center"
    269                 android:layout_weight="0"
    270                 />
    271             <ImageView
    272                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    273                 android:layout_marginEnd="40dp"
    274                 android:layout_height="match_parent"
    275                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    276                 android:scaleType="center"
    277                 android:layout_weight="0"
    278                 />
    279             <Space 
    280                 android:layout_width="match_parent"
    281                 android:layout_height="match_parent"
    282                 android:layout_weight="1"
    283                 />
    284         </LinearLayout>
    285 
    286         <com.android.systemui.statusbar.policy.KeyButtonView
    287             android:layout_width="162dp"
    288             android:id="@+id/search_light"
    289             android:layout_height="match_parent"
    290             android:layout_gravity="center_horizontal"
    291             android:src="@drawable/search_light"
    292             android:scaleType="center"
    293             android:visibility="gone"
    294             android:contentDescription="@string/accessibility_search_light"
    295             />
    296 
    297         <com.android.systemui.statusbar.policy.DeadZone
    298             android:id="@+id/deadzone"
    299             android:layout_height="match_parent"
    300             android:layout_width="match_parent"
    301             systemui:minSize="@dimen/navigation_bar_deadzone_size"
    302             systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
    303             systemui:holdTime="@integer/navigation_bar_deadzone_hold"
    304             systemui:decayTime="@integer/navigation_bar_deadzone_decay"
    305             systemui:orientation="vertical"
    306             android:layout_gravity="top"
    307             />
    308     </FrameLayout>
    309 
    310     <!-- not used -->
    311     <View android:id="@+id/rot270"
    312         android:layout_height="match_parent"
    313         android:layout_width="match_parent"
    314         android:visibility="gone"
    315         />
    316 
    317 </com.android.systemui.statusbar.phone.NavigationBarView>
    318