Home | History | Annotate | Download | only in layout
      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:gravity="center_vertical|left"
     81             />
     82     </LinearLayout>
     83         
     84     <LinearLayout android:id="@+id/ticker"
     85         android:layout_width="match_parent"
     86         android:layout_height="match_parent"
     87         android:paddingLeft="6dip"
     88         android:animationCache="false"
     89         android:orientation="horizontal" >
     90         <ImageSwitcher android:id="@+id/tickerIcon"
     91             android:layout_width="@dimen/status_bar_icon_size"
     92             android:layout_height="@dimen/status_bar_icon_size"
     93             android:layout_marginRight="4dip"
     94             >
     95             <com.android.systemui.statusbar.AnimatedImageView
     96                 android:layout_width="@dimen/status_bar_icon_size"
     97                 android:layout_height="@dimen/status_bar_icon_size"
     98                 android:scaleType="center"
     99                 />
    100             <com.android.systemui.statusbar.AnimatedImageView
    101                 android:layout_width="@dimen/status_bar_icon_size"
    102                 android:layout_height="@dimen/status_bar_icon_size"
    103                 android:scaleType="center"
    104                 />
    105         </ImageSwitcher>
    106         <com.android.systemui.statusbar.phone.TickerView android:id="@+id/tickerText"
    107             android:layout_width="0dip"
    108             android:layout_weight="1"
    109             android:layout_height="wrap_content"
    110             android:paddingTop="2dip"
    111             android:paddingRight="10dip">
    112             <TextView
    113                 android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker"
    114                 android:layout_width="match_parent"
    115                 android:layout_height="wrap_content"
    116                 android:singleLine="true"
    117                 />
    118             <TextView
    119                 android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker"
    120                 android:layout_width="match_parent"
    121                 android:layout_height="wrap_content"
    122                 android:singleLine="true"
    123                 />
    124         </com.android.systemui.statusbar.phone.TickerView>
    125     </LinearLayout>
    126 </com.android.systemui.statusbar.phone.PhoneStatusBarView>
    127