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-auto"
     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="@dimen/navigation_extra_key_width"
     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                 android:scaleType="centerInside"
     61                 systemui:keyCode="4"
     62                 android:layout_weight="0"
     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                 android:scaleType="centerInside"
     70                 systemui:keyCode="3"
     71                 systemui:keyRepeat="true"
     72                 android:layout_weight="0"
     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:scaleType="centerInside"
     80                 android:layout_weight="0"
     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             <FrameLayout
     89                 android:layout_width="@dimen/navigation_extra_key_width"
     90                 android:layout_height="match_parent"
     91                 android:layout_weight="0"
     92                 android:layout_marginEnd="2dp" >
     93                 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
     94                     android:layout_width="@dimen/navigation_extra_key_width"
     95                     android:layout_height="match_parent"
     96                     android:src="@drawable/ic_sysbar_menu"
     97                     android:scaleType="centerInside"
     98                     android:layout_marginEnd="2dp"
     99                     systemui:keyCode="82"
    100                     android:visibility="invisible"
    101                     android:contentDescription="@string/accessibility_menu"
    102                     />
    103                 <com.android.systemui.statusbar.policy.KeyButtonView
    104                     android:id="@+id/ime_switcher"
    105                     android:layout_width="@dimen/navigation_extra_key_width"
    106                     android:layout_height="match_parent"
    107                     android:layout_marginEnd="2dp"
    108                     android:scaleType="centerInside"
    109                     android:src="@drawable/ic_ime_switcher_default"
    110                     android:visibility="invisible"
    111                     android:contentDescription="@string/accessibility_ime_switch_button" />
    112             </FrameLayout>
    113         </LinearLayout>
    114 
    115         <!-- lights out layout to match exactly -->
    116         <LinearLayout
    117             android:layout_height="match_parent"
    118             android:layout_width="match_parent"
    119             android:orientation="horizontal"
    120             android:id="@+id/lights_out"
    121             android:visibility="gone"
    122             >
    123             <Space 
    124                 android:layout_width="match_parent"
    125                 android:layout_height="match_parent"
    126                 android:layout_weight="1"
    127                 />
    128             <ImageView
    129                 android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
    130                 android:layout_height="match_parent"
    131                 android:layout_marginStart="40dp"
    132                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    133                 android:scaleType="center"
    134                 android:layout_weight="0"
    135                 />
    136             <ImageView
    137                 android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
    138                 android:layout_height="match_parent"
    139                 android:src="@drawable/ic_sysbar_lights_out_dot_large"
    140                 android:scaleType="center"
    141                 android:layout_weight="0"
    142                 />
    143             <ImageView
    144                 android:layout_width="128dp" android:paddingStart="25dp" android:paddingEnd="25dp"
    145                 android:layout_marginEnd="40dp"
    146                 android:layout_height="match_parent"
    147                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    148                 android:scaleType="center"
    149                 android:layout_weight="0"
    150                 />
    151             <Space 
    152                 android:layout_width="match_parent"
    153                 android:layout_height="match_parent"
    154                 android:layout_weight="1"
    155                 />
    156         </LinearLayout>
    157 
    158         <com.android.systemui.statusbar.policy.DeadZone
    159             android:id="@+id/deadzone"
    160             android:layout_height="match_parent"
    161             android:layout_width="match_parent"
    162             systemui:minSize="@dimen/navigation_bar_deadzone_size"
    163             systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
    164             systemui:holdTime="@integer/navigation_bar_deadzone_hold"
    165             systemui:decayTime="@integer/navigation_bar_deadzone_decay"
    166             systemui:orientation="horizontal"
    167             android:layout_gravity="top"
    168             />
    169     </FrameLayout>
    170 
    171     <FrameLayout android:id="@+id/rot90"
    172         android:layout_height="match_parent"
    173         android:layout_width="match_parent"
    174         android:visibility="gone"
    175         android:paddingTop="0dp"
    176         >
    177 
    178         <LinearLayout
    179             android:layout_height="match_parent"
    180             android:layout_width="match_parent"
    181             android:orientation="horizontal"
    182             android:clipChildren="false"
    183             android:clipToPadding="false"
    184             android:id="@+id/nav_buttons"
    185             android:animateLayoutChanges="true"
    186             >
    187 
    188             <!-- navigation controls -->
    189             <View
    190                 android:layout_width="@dimen/navigation_extra_key_width"
    191                 android:layout_height="match_parent"
    192                 android:layout_weight="0"
    193                 android:layout_marginStart="2dp"
    194                 android:visibility="invisible"
    195                 />
    196             <Space 
    197                 android:layout_width="match_parent"
    198                 android:layout_height="match_parent"
    199                 android:layout_weight="1"
    200                 />
    201             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
    202                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    203                 android:layout_height="match_parent"
    204                 android:src="@drawable/ic_sysbar_back"
    205                 android:scaleType="centerInside"
    206                 systemui:keyCode="4"
    207                 android:layout_weight="0"
    208                 android:contentDescription="@string/accessibility_back"
    209                 />
    210             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
    211                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    212                 android:layout_height="match_parent"
    213                 android:src="@drawable/ic_sysbar_home"
    214                 android:scaleType="centerInside"
    215                 systemui:keyCode="3"
    216                 systemui:keyRepeat="true"
    217                 android:layout_weight="0"
    218                 android:contentDescription="@string/accessibility_home"
    219                 />
    220             <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
    221                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    222                 android:layout_height="match_parent"
    223                 android:src="@drawable/ic_sysbar_recent"
    224                 android:scaleType="centerInside"
    225                 android:layout_weight="0"
    226                 android:contentDescription="@string/accessibility_recent"
    227                 />
    228             <Space 
    229                 android:layout_width="match_parent"
    230                 android:layout_height="match_parent"
    231                 android:layout_weight="1"
    232                 />
    233             <FrameLayout
    234                 android:layout_width="@dimen/navigation_extra_key_width"
    235                 android:layout_height="match_parent"
    236                 android:layout_marginEnd="2dp"
    237                 android:layout_weight="0" >
    238                 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
    239                     android:layout_width="@dimen/navigation_extra_key_width"
    240                     android:layout_height="match_parent"
    241                     android:layout_marginEnd="2dp"
    242                     android:src="@drawable/ic_sysbar_menu"
    243                     android:scaleType="centerInside"
    244                     systemui:keyCode="82"
    245                     android:visibility="invisible"
    246                     android:contentDescription="@string/accessibility_menu" />
    247                 <com.android.systemui.statusbar.policy.KeyButtonView
    248                     android:id="@+id/ime_switcher"
    249                     android:layout_width="@dimen/navigation_extra_key_width"
    250                     android:layout_height="match_parent"
    251                     android:layout_marginEnd="2dp"
    252                     android:src="@drawable/ic_ime_switcher_default"
    253                     android:visibility="invisible"
    254                     android:contentDescription="@string/accessibility_ime_switch_button"
    255                     android:scaleType="centerInside" />
    256             </FrameLayout>
    257         </LinearLayout>
    258 
    259         <!-- lights out layout to match exactly -->
    260         <LinearLayout
    261             android:layout_height="match_parent"
    262             android:layout_width="match_parent"
    263             android:orientation="horizontal"
    264             android:id="@+id/lights_out"
    265             android:visibility="gone"
    266             >
    267             <Space 
    268                 android:layout_width="match_parent"
    269                 android:layout_height="match_parent"
    270                 android:layout_weight="1"
    271                 />
    272             <ImageView
    273                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    274                 android:layout_height="match_parent"
    275                 android:layout_marginStart="40dp"
    276                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    277                 android:scaleType="center"
    278                 android:layout_weight="0"
    279                 />
    280             <ImageView
    281                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    282                 android:layout_height="match_parent"
    283                 android:src="@drawable/ic_sysbar_lights_out_dot_large"
    284                 android:scaleType="center"
    285                 android:layout_weight="0"
    286                 />
    287             <ImageView
    288                 android:layout_width="162dp" android:paddingStart="42dp" android:paddingEnd="42dp"
    289                 android:layout_marginEnd="40dp"
    290                 android:layout_height="match_parent"
    291                 android:src="@drawable/ic_sysbar_lights_out_dot_small"
    292                 android:scaleType="center"
    293                 android:layout_weight="0"
    294                 />
    295             <Space 
    296                 android:layout_width="match_parent"
    297                 android:layout_height="match_parent"
    298                 android:layout_weight="1"
    299                 />
    300         </LinearLayout>
    301 
    302         <com.android.systemui.statusbar.policy.DeadZone
    303             android:id="@+id/deadzone"
    304             android:layout_height="match_parent"
    305             android:layout_width="match_parent"
    306             systemui:minSize="@dimen/navigation_bar_deadzone_size"
    307             systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
    308             systemui:holdTime="@integer/navigation_bar_deadzone_hold"
    309             systemui:decayTime="@integer/navigation_bar_deadzone_decay"
    310             systemui:orientation="vertical"
    311             android:layout_gravity="top"
    312             />
    313     </FrameLayout>
    314 </com.android.systemui.statusbar.phone.NavigationBarView>
    315