Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | /* apps/common/assets/default/default/skins/StatusBar.xml |
| 4 | ** |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 5 | ** Copyright 2010, The Android Open Source Project |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 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 | |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 21 | <com.android.systemui.statusbar.tablet.SystemPanel |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 22 | xmlns:android="http://schemas.android.com/apk/res/android" |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 23 | android:layout_height="wrap_content" |
| 24 | android:layout_width="match_parent" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 25 | android:background="@drawable/sysbar_panel_bg" |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 26 | android:orientation="vertical" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 27 | android:paddingLeft="70dip" |
| 28 | android:paddingRight="120dip" |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 29 | > |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 30 | |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 31 | <!-- top row: quick settings buttons --> |
| 32 | <LinearLayout |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 33 | android:layout_width="match_parent" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 34 | android:layout_height="64dip" |
| 35 | android:orientation="horizontal" |
| 36 | android:gravity="center" |
| 37 | > |
| 38 | <ImageButton android:id="@+id/brightness" |
| 39 | android:layout_width="90dip" |
| 40 | android:layout_height="64dip" |
| 41 | android:src="@drawable/ic_sysbar_brightness" |
| 42 | android:background="@drawable/sysbar_toggle_bg_off" |
| 43 | /> |
| 44 | <ImageButton android:id="@+id/sound" |
| 45 | android:layout_width="90dip" |
| 46 | android:layout_height="64dip" |
| 47 | android:layout_marginLeft="8dip" |
| 48 | android:src="@drawable/ic_sysbar_sound_on" |
| 49 | android:background="@drawable/sysbar_toggle_bg_off" |
| 50 | /> |
| 51 | <ImageButton android:id="@+id/orientation" |
| 52 | android:layout_width="90dip" |
| 53 | android:layout_height="64dip" |
| 54 | android:layout_marginLeft="8dip" |
| 55 | android:src="@drawable/ic_sysbar_rotate_on" |
| 56 | android:background="@drawable/sysbar_toggle_bg_off" |
| 57 | /> |
| 58 | <ImageButton android:id="@+id/airplane" |
| 59 | android:layout_width="90dip" |
| 60 | android:layout_height="64dip" |
| 61 | android:layout_marginLeft="8dip" |
| 62 | android:src="@drawable/ic_sysbar_airplane_on" |
| 63 | android:background="@drawable/sysbar_toggle_bg_off" |
| 64 | /> |
| 65 | <ImageButton android:id="@+id/gps" |
| 66 | android:layout_width="90dip" |
| 67 | android:layout_height="64dip" |
| 68 | android:layout_marginLeft="8dip" |
| 69 | android:src="@drawable/ic_sysbar_gps_on" |
| 70 | android:background="@drawable/sysbar_toggle_bg_off" |
| 71 | /> |
| 72 | <ImageButton android:id="@+id/bluetooth" |
| 73 | android:layout_width="90dip" |
| 74 | android:layout_height="64dip" |
| 75 | android:layout_marginLeft="8dip" |
| 76 | android:src="@drawable/ic_sysbar_bluetooth_on" |
| 77 | android:background="@drawable/sysbar_toggle_bg_off" |
| 78 | /> |
| 79 | </LinearLayout> |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 80 | |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 81 | <!-- main row: meters, clock --> |
| 82 | <RelativeLayout |
| 83 | android:padding="8dip" |
| 84 | android:layout_width="match_parent" |
| 85 | android:layout_height="192dip" |
| 86 | > |
| 87 | <RelativeLayout |
| 88 | android:layout_width="256dip" |
| 89 | android:layout_height="192dip" |
| 90 | android:layout_alignParentLeft="true" |
| 91 | android:layout_marginLeft="48dip" |
| 92 | > |
| 93 | <ImageView android:id="@+id/battery_meter" |
| 94 | android:layout_width="256dip" |
| 95 | android:layout_height="wrap_content" |
| 96 | android:layout_alignParentBottom="true" |
| 97 | android:scaleType="centerCrop" |
| 98 | android:src="@drawable/sysbar_battery" |
| 99 | /> |
| 100 | <TextView android:id="@+id/battery_info" |
| 101 | style="@style/TextAppearance.StatusBar.SystemPanel" |
| 102 | android:layout_width="match_parent" |
| 103 | android:layout_height="24dip" |
| 104 | android:gravity="center" |
| 105 | android:layout_above="@id/battery_meter" |
| 106 | /> |
| 107 | </RelativeLayout> |
| 108 | |
| 109 | <com.android.systemui.statusbar.Clock |
| 110 | style="@style/TextAppearance.StatusBar.SystemPanel" |
| 111 | android:id="@+id/clock" |
| 112 | android:layout_width="wrap_content" |
| 113 | android:layout_height="wrap_content" |
| 114 | android:singleLine="true" |
| 115 | android:textSize="50sp" |
| 116 | android:textStyle="normal" |
| 117 | android:textColor="#FFFFFFFF" |
| 118 | android:layout_centerHorizontal="true" |
| 119 | android:layout_alignParentBottom="true" |
| 120 | /> |
| 121 | |
| 122 | <RelativeLayout |
| 123 | android:layout_width="256dip" |
| 124 | android:layout_height="192dip" |
| 125 | android:layout_alignParentRight="true" |
| 126 | android:layout_marginRight="48dip" |
| 127 | > |
| 128 | <ImageView android:id="@+id/signal_meter" |
| 129 | android:layout_width="256dip" |
| 130 | android:layout_height="wrap_content" |
| 131 | android:layout_alignParentBottom="true" |
| 132 | android:scaleType="centerCrop" |
| 133 | android:src="@drawable/sysbar_signal" |
| 134 | /> |
| 135 | |
| 136 | <TextView android:id="@+id/signal_info" |
| 137 | style="@style/TextAppearance.StatusBar.SystemPanel" |
| 138 | android:layout_width="match_parent" |
| 139 | android:layout_height="24dip" |
| 140 | android:gravity="center" |
| 141 | android:layout_above="@id/signal_meter" |
| 142 | /> |
| 143 | </RelativeLayout> |
| 144 | |
| 145 | <ImageView |
| 146 | android:layout_height="wrap_content" |
| 147 | android:layout_width="wrap_content" |
| 148 | android:layout_alignParentLeft="true" |
| 149 | android:layout_alignParentBottom="true" |
| 150 | android:layout_marginBottom="8dip" |
| 151 | android:layout_marginLeft="8dip" |
| 152 | android:src="@drawable/ic_sysbar_battery_on" |
| 153 | /> |
| 154 | <ImageView |
| 155 | android:layout_height="wrap_content" |
| 156 | android:layout_width="wrap_content" |
| 157 | android:layout_alignParentRight="true" |
| 158 | android:layout_alignParentBottom="true" |
| 159 | android:layout_marginBottom="8dip" |
| 160 | android:layout_marginRight="8dip" |
| 161 | android:src="@drawable/ic_sysbar_wifi_on" |
| 162 | /> |
| 163 | </RelativeLayout> |
| 164 | |
| 165 | <!-- bottom row: transient indicators, settings button --> |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 166 | <View |
| 167 | android:layout_width="match_parent" |
| 168 | android:layout_height="1sp" |
| 169 | android:background="@android:drawable/divider_horizontal_dark" |
| 170 | /> |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 171 | <RelativeLayout |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 172 | android:layout_width="match_parent" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 173 | android:layout_height="48dip" |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 174 | > |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 175 | <LinearLayout |
| 176 | android:layout_width="wrap_content" |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 177 | android:layout_height="wrap_content" |
| 178 | android:layout_alignParentLeft="true" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 179 | android:orientation="horizontal" |
Daniel Sandler | d7db7b1 | 2010-08-13 16:26:39 -0400 | [diff] [blame] | 180 | > |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 181 | <!-- TODO: alarm --> |
| 182 | <!-- TODO: sync --> |
| 183 | <TextView android:id="@+id/date" |
| 184 | android:layout_width="wrap_content" |
Daniel Sandler | d7db7b1 | 2010-08-13 16:26:39 -0400 | [diff] [blame] | 185 | android:layout_height="wrap_content" |
Daniel Sandler | d7db7b1 | 2010-08-13 16:26:39 -0400 | [diff] [blame] | 186 | /> |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 187 | </LinearLayout> |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 188 | |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 189 | <TextView android:id="@+id/settings_button" |
| 190 | style="@style/TextAppearance.StatusBar.TextButton" |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 191 | android:layout_width="wrap_content" |
| 192 | android:layout_height="wrap_content" |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 193 | android:layout_alignParentRight="true" |
Daniel Sandler | d39e388 | 2010-08-31 14:16:13 -0400 | [diff] [blame] | 194 | android:layout_centerVertical="true" |
| 195 | android:paddingRight="32dip" |
| 196 | android:paddingLeft="32dip" |
| 197 | android:textSize="20sp" |
| 198 | android:text="@string/system_panel_settings_button" |
| 199 | /> |
| 200 | <View |
| 201 | android:layout_height="match_parent" |
| 202 | android:layout_width="1sp" |
| 203 | android:layout_toLeftOf="@id/settings_button" |
| 204 | android:background="@*android:drawable/divider_vertical_dark" |
| 205 | /> |
Daniel Sandler | 9120d55 | 2010-07-23 09:11:14 -0400 | [diff] [blame] | 206 | |
| 207 | </RelativeLayout> |
Daniel Sandler | 6425ef9 | 2010-08-11 16:10:19 -0400 | [diff] [blame] | 208 | </com.android.systemui.statusbar.tablet.SystemPanel> |