blob: 28c9dc0e0b821afdac4cf5885e28c02f52ac03be [file] [log] [blame]
Joe Onorato808182d2010-07-09 18:52:06 -04001<?xml version="1.0" encoding="utf-8"?>
2<!--
Joe Onoratoef1e7762010-09-17 18:38:38 -04003 * 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.
Joe Onorato808182d2010-07-09 18:52:06 -040016-->
17
Daniel Sandler0ad460b2010-12-14 12:14:53 -050018<!-- TabletStatusBarView extends FrameLayout -->
Joe Onoratob62ac122010-09-20 16:16:32 -040019<com.android.systemui.statusbar.tablet.TabletStatusBarView
Joe Onorato808182d2010-07-09 18:52:06 -040020 xmlns:android="http://schemas.android.com/apk/res/android"
21 xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
Daniel Sandler4a066c52012-04-20 14:49:13 -040022 android:background="@drawable/system_bar_background"
Joe Onorato808182d2010-07-09 18:52:06 -040023 >
Daniel Sandler0ad460b2010-12-14 12:14:53 -050024
25 <FrameLayout
26 android:id="@+id/bar_contents_holder"
Daniel Sandlerce70d912010-09-02 11:59:41 -040027 android:layout_width="match_parent"
Daniel Sandler4a066c52012-04-20 14:49:13 -040028 android:layout_height="@*android:dimen/system_bar_height"
Joe Onoratodc100302011-01-11 17:07:41 -080029 android:layout_gravity="bottom"
Daniel Sandlerce70d912010-09-02 11:59:41 -040030 >
Daniel Sandler0ad460b2010-12-14 12:14:53 -050031 <RelativeLayout
32 android:id="@+id/bar_contents"
33 android:layout_width="match_parent"
Daniel Sandler764b4da2010-08-24 16:24:35 -040034 android:layout_height="match_parent"
Daniel Sandlera375c942011-07-29 00:33:53 -040035 android:clipChildren="false"
Joe Onoratofd52b182010-11-10 18:00:52 -080036 >
Daniel Sandler0ad460b2010-12-14 12:14:53 -050037
38 <!-- notification icons & panel access -->
Daniel Sandler4a066c52012-04-20 14:49:13 -040039 <include layout="@layout/system_bar_notification_area"
satok9b407472010-12-07 14:36:51 +090040 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070042 android:layout_alignParentEnd="true"
Daniel Sandler7f70eaa2011-01-26 16:03:20 -050043 android:layout_marginTop="1dp"
satok9b407472010-12-07 14:36:51 +090044 />
Daniel Sandler0ad460b2010-12-14 12:14:53 -050045
46 <!-- navigation controls -->
47 <LinearLayout
48 android:id="@+id/navigationArea"
Joe Onoratofd52b182010-11-10 18:00:52 -080049 android:layout_width="wrap_content"
50 android:layout_height="match_parent"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070051 android:layout_alignParentStart="true"
Joe Onoratofd52b182010-11-10 18:00:52 -080052 android:orientation="horizontal"
Daniel Sandlera375c942011-07-29 00:33:53 -040053 android:clipChildren="false"
54 android:clipToPadding="false"
Joe Onoratofd52b182010-11-10 18:00:52 -080055 >
Daniel Sandler96f48182011-08-17 09:50:35 -040056 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
Andrew Flynn1d9af302012-03-07 15:48:51 -080057 android:layout_width="@dimen/navigation_key_width"
Daniel Sandler96f48182011-08-17 09:50:35 -040058 android:layout_height="match_parent"
59 android:src="@drawable/ic_sysbar_back"
60 systemui:keyCode="4"
61 android:contentDescription="@string/accessibility_back"
62 systemui:glowBackground="@drawable/ic_sysbar_highlight"
63 />
Daniel Sandler0ad460b2010-12-14 12:14:53 -050064 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
Andrew Flynn1d9af302012-03-07 15:48:51 -080065 android:layout_width="@dimen/navigation_key_width"
Daniel Sandler051dccf2010-11-18 13:54:18 -050066 android:layout_height="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050067 android:src="@drawable/ic_sysbar_home"
68 systemui:keyCode="3"
Svetoslav Ganov6179ea32011-06-28 01:12:41 -070069 android:contentDescription="@string/accessibility_home"
Daniel Sandlera375c942011-07-29 00:33:53 -040070 systemui:glowBackground="@drawable/ic_sysbar_highlight"
Daniel Sandler3e8f5a22010-12-03 14:52:10 -050071 />
Daniel Sandlera375c942011-07-29 00:33:53 -040072 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/recent_apps"
Andrew Flynn1d9af302012-03-07 15:48:51 -080073 android:layout_width="@dimen/navigation_key_width"
Daniel Sandlerb6d3dc62010-11-17 16:51:26 -050074 android:layout_height="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050075 android:src="@drawable/ic_sysbar_recent"
Michael Jurka7daf95d2011-09-30 11:07:30 -070076 android:contentDescription="@string/accessibility_recent"
Daniel Sandlera375c942011-07-29 00:33:53 -040077 systemui:glowBackground="@drawable/ic_sysbar_highlight"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050078 />
79 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
Andrew Flynn1d9af302012-03-07 15:48:51 -080080 android:layout_width="@dimen/navigation_menu_key_width"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050081 android:layout_height="match_parent"
82 android:src="@drawable/ic_sysbar_menu"
83 systemui:keyCode="82"
84 android:visibility="invisible"
Svetoslav Ganov6179ea32011-06-28 01:12:41 -070085 android:contentDescription="@string/accessibility_menu"
Daniel Sandlera375c942011-07-29 00:33:53 -040086 systemui:glowBackground="@drawable/ic_sysbar_highlight"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050087 />
Joe Onoratofd52b182010-11-10 18:00:52 -080088 </LinearLayout>
Joe Onorato808182d2010-07-09 18:52:06 -040089
Daniel Sandler0ad460b2010-12-14 12:14:53 -050090 <!-- fake space bar zone -->
Joe Onorato020460b2011-01-19 15:25:55 -080091 <com.android.systemui.statusbar.policy.EventHole android:id="@+id/fake_space_bar"
Joe Onoratoea70e632010-09-27 17:59:37 -070092 android:layout_height="match_parent"
Joe Onorato020460b2011-01-19 15:25:55 -080093 android:layout_width="0dp"
Fabrice Di Meglio02c40c22013-03-08 14:05:28 -080094 android:paddingStart="8dip"
95 android:paddingEnd="8dip"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -070096 android:layout_toEndOf="@+id/navigationArea"
97 android:layout_toStartOf="@+id/notificationArea"
Daniel Sandlerb9606992010-11-19 14:47:59 -050098 android:visibility="gone"
Daniel Sandlerb9606992010-11-19 14:47:59 -050099 />
100 </RelativeLayout>
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500101 </FrameLayout>
Daniel Sandler10163c62010-12-08 11:51:05 -0500102
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500103 <FrameLayout
104 android:id="@+id/bar_shadow_holder"
105 android:layout_width="match_parent"
John Spurlock988e6b72012-06-25 14:32:05 -0400106 android:layout_height="@*android:dimen/system_bar_height"
Joe Onoratodc100302011-01-11 17:07:41 -0800107 android:layout_gravity="bottom"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500108 >
109 <!-- lights out shade -->
110 <RelativeLayout
111 android:id="@+id/bar_shadow"
Daniel Sandler10163c62010-12-08 11:51:05 -0500112 android:layout_width="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500113 android:layout_height="match_parent"
114 android:background="#FF000000"
Daniel Sandler10163c62010-12-08 11:51:05 -0500115 android:visibility="gone"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500116 >
117 <ImageView
118 android:id="@+id/dot0"
119 android:layout_width="80dip"
120 android:layout_height="48dip"
121 android:src="@drawable/ic_sysbar_lights_out_dot_small"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700122 android:layout_alignParentStart="true"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500123 android:layout_alignParentBottom="true"
124 />
125 <ImageView
126 android:id="@+id/dot1"
127 android:layout_width="80dip"
128 android:layout_height="48dip"
129 android:src="@drawable/ic_sysbar_lights_out_dot_large"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700130 android:layout_toEndOf="@+id/dot0"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500131 android:layout_alignParentBottom="true"
132 />
133 <ImageView
134 android:id="@+id/dot2"
135 android:layout_width="80dip"
136 android:layout_height="48dip"
137 android:src="@drawable/ic_sysbar_lights_out_dot_small"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700138 android:layout_toEndOf="@+id/dot1"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500139 android:layout_alignParentBottom="true"
140 />
141 <ImageView
142 android:id="@+id/dot3"
143 android:layout_width="80dip"
144 android:layout_height="48dip"
145 android:src="@drawable/ic_sysbar_lights_out_dot_small"
Fabrice Di Meglio8afcd142012-07-27 18:27:11 -0700146 android:layout_alignParentEnd="true"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500147 android:layout_alignParentBottom="true"
148 />
149 </RelativeLayout>
150 </FrameLayout>
Joe Onoratob62ac122010-09-20 16:16:32 -0400151</com.android.systemui.statusbar.tablet.TabletStatusBarView>