blob: 852b72974f37c1194d8151900a1107747c572ed8 [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"
22 android:background="@drawable/status_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"
Joe Onoratodc100302011-01-11 17:07:41 -080028 android:layout_height="@*android:dimen/status_bar_height"
29 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 Sandlerb8027d82010-12-16 19:35:54 -050035 android:animateLayoutChanges="true"
Joe Onoratofd52b182010-11-10 18:00:52 -080036 >
Daniel Sandler0ad460b2010-12-14 12:14:53 -050037
38 <!-- notification icons & panel access -->
39 <include layout="@layout/status_bar_notification_area"
satok9b407472010-12-07 14:36:51 +090040 android:layout_width="wrap_content"
41 android:layout_height="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050042 android:layout_alignParentRight="true"
satok9b407472010-12-07 14:36:51 +090043 />
Daniel Sandler0ad460b2010-12-14 12:14:53 -050044
45 <!-- navigation controls -->
46 <LinearLayout
47 android:id="@+id/navigationArea"
Joe Onoratofd52b182010-11-10 18:00:52 -080048 android:layout_width="wrap_content"
49 android:layout_height="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050050 android:layout_alignParentLeft="true"
Joe Onoratofd52b182010-11-10 18:00:52 -080051 android:orientation="horizontal"
52 >
Daniel Sandler0ad460b2010-12-14 12:14:53 -050053
54 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/back"
55 android:layout_width="80dip"
56 android:layout_height="match_parent"
57 android:src="@drawable/ic_sysbar_back"
58 systemui:keyCode="4"
Joe Onoratofd52b182010-11-10 18:00:52 -080059 />
Daniel Sandler0ad460b2010-12-14 12:14:53 -050060 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/home"
61 android:layout_width="80dip"
Daniel Sandler051dccf2010-11-18 13:54:18 -050062 android:layout_height="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050063 android:src="@drawable/ic_sysbar_home"
64 systemui:keyCode="3"
Daniel Sandler3e8f5a22010-12-03 14:52:10 -050065 />
Daniel Sandler0ad460b2010-12-14 12:14:53 -050066 <ImageView android:id="@+id/recent_apps"
67 android:layout_width="80dip"
Daniel Sandlerb6d3dc62010-11-17 16:51:26 -050068 android:layout_height="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050069 android:src="@drawable/ic_sysbar_recent"
70 />
71 <com.android.systemui.statusbar.policy.KeyButtonView android:id="@+id/menu"
72 android:layout_width="80dip"
73 android:layout_height="match_parent"
74 android:src="@drawable/ic_sysbar_menu"
75 systemui:keyCode="82"
76 android:visibility="invisible"
77 />
Joe Onoratofd52b182010-11-10 18:00:52 -080078 </LinearLayout>
Joe Onorato808182d2010-07-09 18:52:06 -040079
Daniel Sandler0ad460b2010-12-14 12:14:53 -050080 <!-- fake space bar zone -->
Joe Onorato020460b2011-01-19 15:25:55 -080081 <com.android.systemui.statusbar.policy.EventHole android:id="@+id/fake_space_bar"
Joe Onoratoea70e632010-09-27 17:59:37 -070082 android:layout_height="match_parent"
Joe Onorato020460b2011-01-19 15:25:55 -080083 android:layout_width="0dp"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050084 android:paddingLeft="8dip"
85 android:paddingRight="8dip"
86 android:layout_toRightOf="@+id/navigationArea"
87 android:layout_toLeftOf="@+id/notificationArea"
Daniel Sandlerb9606992010-11-19 14:47:59 -050088 android:visibility="gone"
Daniel Sandlerb9606992010-11-19 14:47:59 -050089 />
90 </RelativeLayout>
Daniel Sandler0ad460b2010-12-14 12:14:53 -050091 </FrameLayout>
Daniel Sandler10163c62010-12-08 11:51:05 -050092
Daniel Sandler0ad460b2010-12-14 12:14:53 -050093 <FrameLayout
94 android:id="@+id/bar_shadow_holder"
95 android:layout_width="match_parent"
Joe Onoratodc100302011-01-11 17:07:41 -080096 android:layout_height="@*android:dimen/status_bar_height"
97 android:layout_gravity="bottom"
Daniel Sandler0ad460b2010-12-14 12:14:53 -050098 >
99 <!-- lights out shade -->
100 <RelativeLayout
101 android:id="@+id/bar_shadow"
Daniel Sandler10163c62010-12-08 11:51:05 -0500102 android:layout_width="match_parent"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500103 android:layout_height="match_parent"
104 android:background="#FF000000"
Daniel Sandler10163c62010-12-08 11:51:05 -0500105 android:visibility="gone"
Daniel Sandler0ad460b2010-12-14 12:14:53 -0500106 >
107 <ImageView
108 android:id="@+id/dot0"
109 android:layout_width="80dip"
110 android:layout_height="48dip"
111 android:src="@drawable/ic_sysbar_lights_out_dot_small"
112 android:layout_alignParentLeft="true"
113 android:layout_alignParentBottom="true"
114 />
115 <ImageView
116 android:id="@+id/dot1"
117 android:layout_width="80dip"
118 android:layout_height="48dip"
119 android:src="@drawable/ic_sysbar_lights_out_dot_large"
120 android:layout_toRightOf="@+id/dot0"
121 android:layout_alignParentBottom="true"
122 />
123 <ImageView
124 android:id="@+id/dot2"
125 android:layout_width="80dip"
126 android:layout_height="48dip"
127 android:src="@drawable/ic_sysbar_lights_out_dot_small"
128 android:layout_toRightOf="@+id/dot1"
129 android:layout_alignParentBottom="true"
130 />
131 <ImageView
132 android:id="@+id/dot3"
133 android:layout_width="80dip"
134 android:layout_height="48dip"
135 android:src="@drawable/ic_sysbar_lights_out_dot_small"
136 android:layout_alignParentRight="true"
137 android:layout_alignParentBottom="true"
138 />
139 </RelativeLayout>
140 </FrameLayout>
Joe Onoratob62ac122010-09-20 16:16:32 -0400141</com.android.systemui.statusbar.tablet.TabletStatusBarView>