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