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:id="@+id/status_bar"
     26     android:background="@drawable/system_bar_background"
     27     android:orientation="vertical"
     28     android:focusable="true"
     29     android:descendantFocusability="afterDescendants"
     30     >
     31 
     32     <ImageView
     33         android:id="@+id/notification_lights_out"
     34         android:layout_width="@dimen/status_bar_icon_size"
     35         android:layout_height="match_parent"
     36         android:paddingStart="6dip"
     37         android:paddingBottom="2dip"
     38         android:src="@drawable/ic_sysbar_lights_out_dot_small"
     39         android:scaleType="center"
     40         android:visibility="gone"
     41         />
     42 
     43     <LinearLayout android:id="@+id/status_bar_contents"
     44         android:layout_width="match_parent"
     45         android:layout_height="match_parent"
     46         android:paddingStart="6dp"
     47         android:paddingEnd="8dp"
     48         android:orientation="horizontal"
     49         >
     50 
     51         <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
     52             android:id="@+id/notification_icon_area"
     53             android:layout_width="0dip"
     54             android:layout_height="match_parent"
     55             android:layout_weight="1"
     56             android:orientation="horizontal"
     57             >
     58             <!-- The alpha of this area is both controlled from PhoneStatusBarTransitions and
     59                  PhoneStatusBar (DISABLE_NOTIFICATION_ICONS), so we need two views here. -->
     60             <com.android.keyguard.AlphaOptimizedLinearLayout
     61                 android:id="@+id/notification_icon_area_inner"
     62                 android:layout_width="match_parent"
     63                 android:layout_height="match_parent"
     64                 >
     65                 <com.android.systemui.statusbar.StatusBarIconView android:id="@+id/moreIcon"
     66                     android:layout_width="@dimen/status_bar_icon_size"
     67                     android:layout_height="match_parent"
     68                     android:src="@drawable/stat_notify_more"
     69                     android:visibility="gone"
     70                     />
     71                 <com.android.systemui.statusbar.phone.IconMerger android:id="@+id/notificationIcons"
     72                     android:layout_width="match_parent"
     73                     android:layout_height="match_parent"
     74                     android:layout_alignParentStart="true"
     75                     android:gravity="center_vertical"
     76                     android:orientation="horizontal"/>
     77             </com.android.keyguard.AlphaOptimizedLinearLayout>
     78         </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
     79 
     80         <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area"
     81             android:layout_width="wrap_content"
     82             android:layout_height="match_parent"
     83             android:orientation="horizontal"
     84             >
     85 
     86             <include layout="@layout/system_icons" />
     87 
     88             <com.android.systemui.statusbar.policy.Clock
     89                 android:id="@+id/clock"
     90                 android:textAppearance="@style/TextAppearance.StatusBar.Clock"
     91                 android:layout_width="wrap_content"
     92                 android:layout_height="match_parent"
     93                 android:singleLine="true"
     94                 android:paddingStart="7dp"
     95                 android:gravity="center_vertical|start"
     96                 />
     97         </com.android.keyguard.AlphaOptimizedLinearLayout>
     98     </LinearLayout>
     99 
    100     <ViewStub
    101         android:id="@+id/ticker_stub"
    102         android:inflatedId="@+id/ticker"
    103         android:layout="@layout/status_bar_ticker"
    104         android:layout_width="match_parent"
    105         android:layout_height="match_parent"
    106         />
    107 
    108 </com.android.systemui.statusbar.phone.PhoneStatusBarView>
    109