blob: 4987dd98fd3321cf29bcfbd0564aed5aaf498e72 [file] [log] [blame]
Joe Onorato8a576712010-11-15 16:50:34 -08001<?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 Onorato755cc742010-11-27 15:45:35 -080018<com.android.systemui.statusbar.tablet.SettingsView
Joe Onoratoa8e34182010-11-26 13:19:58 -080019 xmlns:android="http://schemas.android.com/apk/res/android"
Joe Onorato75362102010-12-02 16:46:12 -080020 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
Joe Onoratoa8e34182010-11-26 13:19:58 -080021 android:layout_width="match_parent"
22 android:layout_height="wrap_content"
23 android:orientation="vertical"
Joe Onoratoa8e34182010-11-26 13:19:58 -080024 >
25
26 <!-- Airplane mode -->
27 <LinearLayout
28 android:id="@+id/airplane"
Daniel Sandleref863702012-07-11 10:03:34 -040029 style="@style/SystemBarPanelSettingsRow"
Joe Onoratoa8e34182010-11-26 13:19:58 -080030 >
31 <ImageView
32 android:id="@+id/airplane_icon"
Daniel Sandleref863702012-07-11 10:03:34 -040033 style="@style/SystemBarPanelSettingsIcon"
Joe Onoratoa8e34182010-11-26 13:19:58 -080034 android:src="@drawable/ic_sysbar_airplane_on"
35 />
36 <TextView
37 android:id="@+id/airplane_label"
Daniel Sandleref863702012-07-11 10:03:34 -040038 style="@style/SystemBarPanelSettingsContents"
Joe Onoratodff2e9a2010-11-27 16:13:36 -080039 android:text="@string/status_bar_settings_airplane"
Joe Onoratoa8e34182010-11-26 13:19:58 -080040 />
Joe Onorato75362102010-12-02 16:46:12 -080041 <Switch
Joe Onoratoa8e34182010-11-26 13:19:58 -080042 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 Meglio8afcd142012-07-27 18:27:11 -070046 android:layout_marginEnd="5dp"
Joe Onoratoa8e34182010-11-26 13:19:58 -080047 />
48 </LinearLayout>
Daniel Sandleref863702012-07-11 10:03:34 -040049 <View style="@style/SystemBarPanelSettingsPanelSeparator" />
Joe Onoratoa8e34182010-11-26 13:19:58 -080050
51 <!-- Network -->
52 <LinearLayout
53 android:id="@+id/network"
Daniel Sandleref863702012-07-11 10:03:34 -040054 style="@style/SystemBarPanelSettingsRow"
Joe Onoratoa8e34182010-11-26 13:19:58 -080055 >
56 <ImageView
57 android:id="@+id/network_icon"
Daniel Sandleref863702012-07-11 10:03:34 -040058 style="@style/SystemBarPanelSettingsIcon"
Joe Onoratoa8e34182010-11-26 13:19:58 -080059 android:src="@drawable/ic_sysbar_wifi_on"
60 />
61 <TextView
62 android:id="@+id/network_label"
Daniel Sandleref863702012-07-11 10:03:34 -040063 style="@style/SystemBarPanelSettingsContents"
Joe Onorato64eb5d22010-12-08 15:46:59 -080064 android:text="@string/status_bar_settings_wifi_button"
Joe Onoratoa8e34182010-11-26 13:19:58 -080065 />
Joe Onoratoa8e34182010-11-26 13:19:58 -080066 </LinearLayout>
Daniel Sandleref863702012-07-11 10:03:34 -040067 <View style="@style/SystemBarPanelSettingsPanelSeparator" />
Joe Onoratoa8e34182010-11-26 13:19:58 -080068
69 <!-- Rotation lock -->
70 <LinearLayout
71 android:id="@+id/rotate"
Daniel Sandleref863702012-07-11 10:03:34 -040072 style="@style/SystemBarPanelSettingsRow"
Joe Onoratoa8e34182010-11-26 13:19:58 -080073 >
74 <ImageView
75 android:id="@+id/rotate_icon"
Daniel Sandleref863702012-07-11 10:03:34 -040076 style="@style/SystemBarPanelSettingsIcon"
Joe Onoratoa8e34182010-11-26 13:19:58 -080077 android:src="@drawable/ic_sysbar_rotate_on"
78 />
79 <TextView
80 android:id="@+id/rotate_label"
Daniel Sandleref863702012-07-11 10:03:34 -040081 style="@style/SystemBarPanelSettingsContents"
Daniel Sandler5920f152011-03-02 15:19:54 -050082 android:text="@string/status_bar_settings_auto_rotation"
Joe Onoratoa8e34182010-11-26 13:19:58 -080083 />
Joe Onorato75362102010-12-02 16:46:12 -080084 <Switch
Joe Onoratoa8e34182010-11-26 13:19:58 -080085 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 Meglio8afcd142012-07-27 18:27:11 -070089 android:layout_marginEnd="5dp"
Joe Onoratoa8e34182010-11-26 13:19:58 -080090 />
91 </LinearLayout>
Jeff Brown207673cd2012-06-05 17:47:11 -070092 <View
93 android:id="@+id/rotate_separator"
Daniel Sandleref863702012-07-11 10:03:34 -040094 style="@style/SystemBarPanelSettingsPanelSeparator" />
Joe Onoratoa8e34182010-11-26 13:19:58 -080095
96 <!-- Brightness -->
Daniel Sandleref863702012-07-11 10:03:34 -040097 <LinearLayout style="@style/SystemBarPanelSettingsRow" >
Joe Onoratoa8e34182010-11-26 13:19:58 -080098 <ImageView
99 android:id="@+id/brightness_icon"
Daniel Sandleref863702012-07-11 10:03:34 -0400100 style="@style/SystemBarPanelSettingsIcon"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800101 android:src="@drawable/ic_sysbar_brightness"
102 />
Michael Wright0087a142013-02-05 16:29:39 -0800103 <com.android.systemui.settings.ToggleSlider
Joe Onorato1e28f412010-12-01 09:33:36 -0800104 android:id="@+id/brightness"
105 android:layout_width="0dp"
Joe Onorato75362102010-12-02 16:46:12 -0800106 android:layout_height="fill_parent"
Joe Onorato1e28f412010-12-01 09:33:36 -0800107 android:layout_weight="1"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700108 android:layout_marginEnd="2dp"
Joe Onorato75362102010-12-02 16:46:12 -0800109 systemui:text="@string/status_bar_settings_auto_brightness_label"
Joe Onorato1e28f412010-12-01 09:33:36 -0800110 />
Joe Onoratoa8e34182010-11-26 13:19:58 -0800111 </LinearLayout>
Daniel Sandleref863702012-07-11 10:03:34 -0400112 <View style="@style/SystemBarPanelSettingsPanelSeparator" />
Joe Onoratoa8e34182010-11-26 13:19:58 -0800113
Joe Onoratoa8e34182010-11-26 13:19:58 -0800114 <!-- Notifications / Do not disturb -->
115 <LinearLayout
116 android:id="@+id/do_not_disturb"
Daniel Sandleref863702012-07-11 10:03:34 -0400117 style="@style/SystemBarPanelSettingsRow"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800118 >
119 <ImageView
120 android:id="@+id/do_not_disturb_icon"
Daniel Sandleref863702012-07-11 10:03:34 -0400121 style="@style/SystemBarPanelSettingsIcon"
Joe Onoratode7fedd2011-01-30 17:46:32 -0800122 android:src="@drawable/ic_notification_open"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800123 />
124 <TextView
Daniel Sandleref863702012-07-11 10:03:34 -0400125 style="@style/SystemBarPanelSettingsContents"
Joe Onoratodff2e9a2010-11-27 16:13:36 -0800126 android:text="@string/status_bar_settings_notifications"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800127 />
Joe Onorato75362102010-12-02 16:46:12 -0800128 <Switch
Joe Onoratoa8e34182010-11-26 13:19:58 -0800129 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 Meglio8afcd142012-07-27 18:27:11 -0700133 android:layout_marginEnd="5dp"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800134 />
135 </LinearLayout>
Daniel Sandleref863702012-07-11 10:03:34 -0400136 <View style="@style/SystemBarPanelSettingsPanelSeparator" />
Joe Onoratoa8e34182010-11-26 13:19:58 -0800137
138 <!-- Link to settings -->
139 <LinearLayout
140 android:id="@+id/settings"
Daniel Sandleref863702012-07-11 10:03:34 -0400141 style="@style/SystemBarPanelSettingsRow"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800142 >
143
144 <ImageView
145 android:id="@+id/settings"
Daniel Sandleref863702012-07-11 10:03:34 -0400146 style="@style/SystemBarPanelSettingsIcon"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800147 android:src="@drawable/ic_sysbar_quicksettings"
148 />
149 <TextView
Daniel Sandleref863702012-07-11 10:03:34 -0400150 style="@style/SystemBarPanelSettingsContents"
Joe Onoratodff2e9a2010-11-27 16:13:36 -0800151 android:text="@string/status_bar_settings_settings_button"
Joe Onoratoa8e34182010-11-26 13:19:58 -0800152 />
Joe Onoratoa8e34182010-11-26 13:19:58 -0800153 </LinearLayout>
Daniel Sandleref863702012-07-11 10:03:34 -0400154 <View style="@style/SystemBarPanelSettingsPanelSeparator" />
Joe Onoratoa8e34182010-11-26 13:19:58 -0800155
Joe Onorato755cc742010-11-27 15:45:35 -0800156</com.android.systemui.statusbar.tablet.SettingsView>
Joe Onorato8a576712010-11-15 16:50:34 -0800157