Joe Onorato | 8a57671 | 2010-11-15 16:50:34 -0800 | [diff] [blame] | 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 | |
Joe Onorato | 755cc74 | 2010-11-27 15:45:35 -0800 | [diff] [blame] | 18 | <com.android.systemui.statusbar.tablet.SettingsView |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
Joe Onorato | 7536210 | 2010-12-02 16:46:12 -0800 | [diff] [blame] | 20 | xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 21 | android:layout_width="match_parent" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:orientation="vertical" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 24 | > |
| 25 | |
| 26 | <!-- Airplane mode --> |
| 27 | <LinearLayout |
| 28 | android:id="@+id/airplane" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 29 | style="@style/SystemBarPanelSettingsRow" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 30 | > |
| 31 | <ImageView |
| 32 | android:id="@+id/airplane_icon" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 33 | style="@style/SystemBarPanelSettingsIcon" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 34 | android:src="@drawable/ic_sysbar_airplane_on" |
| 35 | /> |
| 36 | <TextView |
| 37 | android:id="@+id/airplane_label" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 38 | style="@style/SystemBarPanelSettingsContents" |
Joe Onorato | dff2e9a | 2010-11-27 16:13:36 -0800 | [diff] [blame] | 39 | android:text="@string/status_bar_settings_airplane" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 40 | /> |
Joe Onorato | 7536210 | 2010-12-02 16:46:12 -0800 | [diff] [blame] | 41 | <Switch |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 42 | android:id="@+id/airplane_checkbox" |
| 43 | android:layout_width="wrap_content" |
| 44 | android:layout_height="wrap_content" |
| 45 | android:layout_gravity="center_vertical" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 46 | android:layout_marginEnd="5dp" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 47 | /> |
| 48 | </LinearLayout> |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 49 | <View style="@style/SystemBarPanelSettingsPanelSeparator" /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 50 | |
| 51 | <!-- Network --> |
| 52 | <LinearLayout |
| 53 | android:id="@+id/network" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 54 | style="@style/SystemBarPanelSettingsRow" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 55 | > |
| 56 | <ImageView |
| 57 | android:id="@+id/network_icon" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 58 | style="@style/SystemBarPanelSettingsIcon" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 59 | android:src="@drawable/ic_sysbar_wifi_on" |
| 60 | /> |
| 61 | <TextView |
| 62 | android:id="@+id/network_label" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 63 | style="@style/SystemBarPanelSettingsContents" |
Joe Onorato | 64eb5d2 | 2010-12-08 15:46:59 -0800 | [diff] [blame] | 64 | android:text="@string/status_bar_settings_wifi_button" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 65 | /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 66 | </LinearLayout> |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 67 | <View style="@style/SystemBarPanelSettingsPanelSeparator" /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 68 | |
| 69 | <!-- Rotation lock --> |
| 70 | <LinearLayout |
| 71 | android:id="@+id/rotate" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 72 | style="@style/SystemBarPanelSettingsRow" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 73 | > |
| 74 | <ImageView |
| 75 | android:id="@+id/rotate_icon" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 76 | style="@style/SystemBarPanelSettingsIcon" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 77 | android:src="@drawable/ic_sysbar_rotate_on" |
| 78 | /> |
| 79 | <TextView |
| 80 | android:id="@+id/rotate_label" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 81 | style="@style/SystemBarPanelSettingsContents" |
Daniel Sandler | 5920f15 | 2011-03-02 15:19:54 -0500 | [diff] [blame] | 82 | android:text="@string/status_bar_settings_auto_rotation" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 83 | /> |
Joe Onorato | 7536210 | 2010-12-02 16:46:12 -0800 | [diff] [blame] | 84 | <Switch |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 85 | android:id="@+id/rotate_checkbox" |
| 86 | android:layout_width="wrap_content" |
| 87 | android:layout_height="wrap_content" |
| 88 | android:layout_gravity="center_vertical" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 89 | android:layout_marginEnd="5dp" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 90 | /> |
| 91 | </LinearLayout> |
Jeff Brown | 207673cd | 2012-06-05 17:47:11 -0700 | [diff] [blame] | 92 | <View |
| 93 | android:id="@+id/rotate_separator" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 94 | style="@style/SystemBarPanelSettingsPanelSeparator" /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 95 | |
| 96 | <!-- Brightness --> |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 97 | <LinearLayout style="@style/SystemBarPanelSettingsRow" > |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 98 | <ImageView |
| 99 | android:id="@+id/brightness_icon" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 100 | style="@style/SystemBarPanelSettingsIcon" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 101 | android:src="@drawable/ic_sysbar_brightness" |
| 102 | /> |
Michael Wright | 0087a14 | 2013-02-05 16:29:39 -0800 | [diff] [blame] | 103 | <com.android.systemui.settings.ToggleSlider |
Joe Onorato | 1e28f41 | 2010-12-01 09:33:36 -0800 | [diff] [blame] | 104 | android:id="@+id/brightness" |
| 105 | android:layout_width="0dp" |
Joe Onorato | 7536210 | 2010-12-02 16:46:12 -0800 | [diff] [blame] | 106 | android:layout_height="fill_parent" |
Joe Onorato | 1e28f41 | 2010-12-01 09:33:36 -0800 | [diff] [blame] | 107 | android:layout_weight="1" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 108 | android:layout_marginEnd="2dp" |
Joe Onorato | 7536210 | 2010-12-02 16:46:12 -0800 | [diff] [blame] | 109 | systemui:text="@string/status_bar_settings_auto_brightness_label" |
Joe Onorato | 1e28f41 | 2010-12-01 09:33:36 -0800 | [diff] [blame] | 110 | /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 111 | </LinearLayout> |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 112 | <View style="@style/SystemBarPanelSettingsPanelSeparator" /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 113 | |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 114 | <!-- Notifications / Do not disturb --> |
| 115 | <LinearLayout |
| 116 | android:id="@+id/do_not_disturb" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 117 | style="@style/SystemBarPanelSettingsRow" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 118 | > |
| 119 | <ImageView |
| 120 | android:id="@+id/do_not_disturb_icon" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 121 | style="@style/SystemBarPanelSettingsIcon" |
Joe Onorato | de7fedd | 2011-01-30 17:46:32 -0800 | [diff] [blame] | 122 | android:src="@drawable/ic_notification_open" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 123 | /> |
| 124 | <TextView |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 125 | style="@style/SystemBarPanelSettingsContents" |
Joe Onorato | dff2e9a | 2010-11-27 16:13:36 -0800 | [diff] [blame] | 126 | android:text="@string/status_bar_settings_notifications" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 127 | /> |
Joe Onorato | 7536210 | 2010-12-02 16:46:12 -0800 | [diff] [blame] | 128 | <Switch |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 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" |
Fabrice Di Meglio | 8afcd14 | 2012-07-27 18:27:11 -0700 | [diff] [blame] | 133 | android:layout_marginEnd="5dp" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 134 | /> |
| 135 | </LinearLayout> |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 136 | <View style="@style/SystemBarPanelSettingsPanelSeparator" /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 137 | |
| 138 | <!-- Link to settings --> |
| 139 | <LinearLayout |
| 140 | android:id="@+id/settings" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 141 | style="@style/SystemBarPanelSettingsRow" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 142 | > |
| 143 | |
| 144 | <ImageView |
| 145 | android:id="@+id/settings" |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 146 | style="@style/SystemBarPanelSettingsIcon" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 147 | android:src="@drawable/ic_sysbar_quicksettings" |
| 148 | /> |
| 149 | <TextView |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 150 | style="@style/SystemBarPanelSettingsContents" |
Joe Onorato | dff2e9a | 2010-11-27 16:13:36 -0800 | [diff] [blame] | 151 | android:text="@string/status_bar_settings_settings_button" |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 152 | /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 153 | </LinearLayout> |
Daniel Sandler | ef86370 | 2012-07-11 10:03:34 -0400 | [diff] [blame] | 154 | <View style="@style/SystemBarPanelSettingsPanelSeparator" /> |
Joe Onorato | a8e3418 | 2010-11-26 13:19:58 -0800 | [diff] [blame] | 155 | |
Joe Onorato | 755cc74 | 2010-11-27 15:45:35 -0800 | [diff] [blame] | 156 | </com.android.systemui.statusbar.tablet.SettingsView> |
Joe Onorato | 8a57671 | 2010-11-15 16:50:34 -0800 | [diff] [blame] | 157 | |