status_bar.xml revision 1a21f0ab603f4bcdb73e5920a3b6b75f04316790
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* apps/common/assets/default/default/skins/StatusBar.xml
4**
5** Copyright 2006, The Android Open Source Project
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
21<!--    android:background="@drawable/status_bar_closed_default_background" -->
22<com.android.systemui.statusbar.phone.PhoneStatusBarView
23    xmlns:android="http://schemas.android.com/apk/res/android"
24    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
25    android:background="@drawable/status_bar_background"
26    android:orientation="vertical"
27    android:focusable="true"
28    android:descendantFocusability="afterDescendants"
29    >
30
31    <LinearLayout android:id="@+id/icons"
32        android:layout_width="match_parent"
33        android:layout_height="match_parent"
34        android:orientation="horizontal">
35            
36        <com.android.systemui.statusbar.phone.IconMerger android:id="@+id/notificationIcons"
37            android:layout_width="0dip"
38            android:layout_weight="1"
39            android:layout_height="match_parent"
40            android:layout_alignParentLeft="true"
41            android:paddingLeft="6dip"
42            android:gravity="center_vertical"
43            android:orientation="horizontal"/>  
44            
45        <LinearLayout android:id="@+id/statusIcons"
46            android:layout_width="wrap_content"
47            android:layout_height="match_parent"
48            android:layout_alignParentRight="true"
49            android:gravity="center_vertical"
50            android:orientation="horizontal"/>    
51
52        <LinearLayout
53            android:id="@+id/signal_battery_cluster"
54            android:layout_width="wrap_content"
55            android:layout_height="match_parent"
56            android:layout_marginRight="6dp"
57            android:orientation="horizontal"
58            android:gravity="center"
59            >
60            <include layout="@layout/signal_cluster_view" 
61                android:id="@+id/signal_cluster"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"
64                />
65            <ImageView
66                android:id="@+id/battery"
67                android:layout_height="wrap_content"
68                android:layout_width="wrap_content"
69                android:paddingLeft="6dip"
70                />
71        </LinearLayout>
72
73        <com.android.systemui.statusbar.policy.Clock
74            android:id="@+id/clock"
75            android:textAppearance="@style/TextAppearance.StatusBar.Clock"
76            android:layout_width="wrap_content"
77            android:layout_height="match_parent"
78            android:singleLine="true"
79            android:paddingRight="6dip"
80            android:textSize="16sp"
81            android:gravity="center_vertical|left"
82            />
83    </LinearLayout>
84        
85    <LinearLayout android:id="@+id/ticker"
86        android:layout_width="match_parent"
87        android:layout_height="match_parent"
88        android:paddingLeft="6dip"
89        android:animationCache="false"
90        android:orientation="horizontal" >
91        <ImageSwitcher android:id="@+id/tickerIcon"
92            android:layout_width="wrap_content"
93            android:layout_height="match_parent"
94            android:layout_marginRight="8dip"
95            >
96            <com.android.systemui.statusbar.AnimatedImageView
97                android:layout_width="25dip"
98                android:layout_height="25dip"
99                />
100            <com.android.systemui.statusbar.AnimatedImageView
101                android:layout_width="25dip"
102                android:layout_height="25dip"
103                />
104        </ImageSwitcher>
105        <com.android.systemui.statusbar.phone.TickerView android:id="@+id/tickerText"
106            android:layout_width="0dip"
107            android:layout_weight="1"
108            android:layout_height="wrap_content"
109            android:paddingTop="2dip"
110            android:paddingRight="10dip">
111            <TextView
112                android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker"
113                android:layout_width="match_parent"
114                android:layout_height="wrap_content"
115                android:singleLine="true"
116                />
117            <TextView
118                android:textAppearance="@*android:style/TextAppearance.StatusBar.Ticker"
119                android:layout_width="match_parent"
120                android:layout_height="wrap_content"
121                android:singleLine="true"
122                />
123        </com.android.systemui.statusbar.phone.TickerView>
124    </LinearLayout>
125</com.android.systemui.statusbar.phone.PhoneStatusBarView>
126