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