Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  * Copyright (C) 2010 The Android Open Source Project
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *      http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16 -->
     17 
     18 <com.android.systemui.statusbar.tablet.SettingsView
     19         xmlns:android="http://schemas.android.com/apk/res/android"
     20         xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
     21         android:layout_width="match_parent"
     22         android:layout_height="wrap_content"
     23         android:orientation="vertical"
     24         >
     25 
     26     <!-- Airplane mode -->
     27     <LinearLayout
     28             android:id="@+id/airplane"
     29             style="@style/StatusBarPanelSettingsRow"
     30             >
     31         <ImageView
     32                 android:id="@+id/airplane_icon"
     33                 style="@style/StatusBarPanelSettingsIcon"
     34                 android:src="@drawable/ic_sysbar_airplane_on"
     35                 />
     36         <TextView
     37                 android:id="@+id/airplane_label"
     38                 style="@style/StatusBarPanelSettingsContents"
     39                 android:text="@string/status_bar_settings_airplane"
     40                 />
     41         <Switch
     42                 android:id="@+id/airplane_checkbox"
     43                 android:layout_width="wrap_content"
     44                 android:layout_height="wrap_content"
     45                 android:layout_gravity="center_vertical"
     46                 android:layout_marginRight="5dp"
     47                 />
     48     </LinearLayout>
     49     <View style="@style/StatusBarPanelSettingsPanelSeparator" />
     50 
     51     <!-- Network -->
     52     <LinearLayout
     53             android:id="@+id/network"
     54             style="@style/StatusBarPanelSettingsRow"
     55             >
     56         <ImageView
     57                 android:id="@+id/network_icon"
     58                 style="@style/StatusBarPanelSettingsIcon"
     59                 android:src="@drawable/ic_sysbar_wifi_on"
     60                 />
     61         <TextView
     62                 android:id="@+id/network_label"
     63                 style="@style/StatusBarPanelSettingsContents"
     64                 android:text="@string/status_bar_settings_wifi_button"
     65                 />
     66     </LinearLayout>
     67     <View style="@style/StatusBarPanelSettingsPanelSeparator" />
     68 
     69     <!-- Rotation lock -->
     70     <LinearLayout
     71             android:id="@+id/rotate"
     72             style="@style/StatusBarPanelSettingsRow"
     73             >
     74         <ImageView
     75                 android:id="@+id/rotate_icon"
     76                 style="@style/StatusBarPanelSettingsIcon"
     77                 android:src="@drawable/ic_sysbar_rotate_on"
     78                 />
     79         <TextView
     80                 android:id="@+id/rotate_label"
     81                 style="@style/StatusBarPanelSettingsContents"
     82                 android:text="@string/status_bar_settings_auto_rotation"
     83                 />
     84         <Switch
     85                 android:id="@+id/rotate_checkbox"
     86                 android:layout_width="wrap_content"
     87                 android:layout_height="wrap_content"
     88                 android:layout_gravity="center_vertical"
     89                 android:layout_marginRight="5dp"
     90                 />
     91     </LinearLayout>
     92     <View
     93             android:id="@+id/rotate_separator"
     94             style="@style/StatusBarPanelSettingsPanelSeparator" />
     95 
     96     <!-- Brightness -->
     97     <LinearLayout style="@style/StatusBarPanelSettingsRow" >
     98         <ImageView
     99                 android:id="@+id/brightness_icon"
    100                 style="@style/StatusBarPanelSettingsIcon"
    101                 android:src="@drawable/ic_sysbar_brightness"
    102                 />
    103         <com.android.systemui.statusbar.policy.ToggleSlider
    104                 android:id="@+id/brightness"
    105                 android:layout_width="0dp"
    106                 android:layout_height="fill_parent"
    107                 android:layout_weight="1"
    108                 android:layout_marginRight="2dp"
    109                 systemui:text="@string/status_bar_settings_auto_brightness_label"
    110                 />
    111     </LinearLayout>
    112     <View style="@style/StatusBarPanelSettingsPanelSeparator" />
    113 
    114     <!-- Notifications / Do not disturb -->
    115     <LinearLayout
    116             android:id="@+id/do_not_disturb"
    117             style="@style/StatusBarPanelSettingsRow"
    118             >
    119         <ImageView
    120                 android:id="@+id/do_not_disturb_icon"
    121                 style="@style/StatusBarPanelSettingsIcon"
    122                 android:src="@drawable/ic_notification_open"
    123                 />
    124         <TextView
    125                 style="@style/StatusBarPanelSettingsContents"
    126                 android:text="@string/status_bar_settings_notifications"
    127                 />
    128         <Switch
    129                 android:id="@+id/do_not_disturb_checkbox"
    130                 android:layout_width="wrap_content"
    131                 android:layout_height="wrap_content"
    132                 android:layout_gravity="center_vertical"
    133                 android:layout_marginRight="5dp"
    134                 />
    135     </LinearLayout>
    136     <View style="@style/StatusBarPanelSettingsPanelSeparator" />
    137 
    138     <!-- Link to settings -->
    139     <LinearLayout
    140             android:id="@+id/settings"
    141             style="@style/StatusBarPanelSettingsRow"
    142             >
    143 
    144         <ImageView
    145                 android:id="@+id/settings"
    146                 style="@style/StatusBarPanelSettingsIcon"
    147                 android:src="@drawable/ic_sysbar_quicksettings"
    148                 />
    149         <TextView
    150                 style="@style/StatusBarPanelSettingsContents"
    151                 android:text="@string/status_bar_settings_settings_button"
    152                 />
    153     </LinearLayout>
    154     <View style="@style/StatusBarPanelSettingsPanelSeparator" />
    155 
    156 </com.android.systemui.statusbar.tablet.SettingsView>
    157 
    158