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 style="@style/StatusBarPanelSettingsPanelSeparator" /> 93 94 <!-- Brightness --> 95 <LinearLayout style="@style/StatusBarPanelSettingsRow" > 96 <ImageView 97 android:id="@+id/brightness_icon" 98 style="@style/StatusBarPanelSettingsIcon" 99 android:src="@drawable/ic_sysbar_brightness" 100 /> 101 <com.android.systemui.statusbar.policy.ToggleSlider 102 android:id="@+id/brightness" 103 android:layout_width="0dp" 104 android:layout_height="fill_parent" 105 android:layout_weight="1" 106 android:layout_marginRight="2dp" 107 systemui:text="@string/status_bar_settings_auto_brightness_label" 108 /> 109 </LinearLayout> 110 <View style="@style/StatusBarPanelSettingsPanelSeparator" /> 111 112 <!-- Notifications / Do not disturb --> 113 <LinearLayout 114 android:id="@+id/do_not_disturb" 115 style="@style/StatusBarPanelSettingsRow" 116 > 117 <ImageView 118 android:id="@+id/do_not_disturb_icon" 119 style="@style/StatusBarPanelSettingsIcon" 120 android:src="@drawable/ic_notification_open" 121 /> 122 <TextView 123 style="@style/StatusBarPanelSettingsContents" 124 android:text="@string/status_bar_settings_notifications" 125 /> 126 <Switch 127 android:id="@+id/do_not_disturb_checkbox" 128 android:layout_width="wrap_content" 129 android:layout_height="wrap_content" 130 android:layout_gravity="center_vertical" 131 android:layout_marginRight="5dp" 132 /> 133 </LinearLayout> 134 <View style="@style/StatusBarPanelSettingsPanelSeparator" /> 135 136 <!-- Link to settings --> 137 <LinearLayout 138 android:id="@+id/settings" 139 style="@style/StatusBarPanelSettingsRow" 140 > 141 142 <ImageView 143 android:id="@+id/settings" 144 style="@style/StatusBarPanelSettingsIcon" 145 android:src="@drawable/ic_sysbar_quicksettings" 146 /> 147 <TextView 148 style="@style/StatusBarPanelSettingsContents" 149 android:text="@string/status_bar_settings_settings_button" 150 /> 151 </LinearLayout> 152 <View style="@style/StatusBarPanelSettingsPanelSeparator" /> 153 154 </com.android.systemui.statusbar.tablet.SettingsView> 155 156