Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 ** Copyright 2012, 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.
     16 -->
     17 
     18 <LinearLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
     21     android:id="@+id/header"
     22     android:layout_width="match_parent"
     23     android:layout_height="@dimen/notification_panel_header_height"
     24     android:background="@drawable/notification_header_bg"
     25     android:orientation="horizontal"
     26     android:gravity="center_vertical"
     27     android:baselineAligned="false"
     28     >
     29     <RelativeLayout
     30         android:id="@+id/datetime"
     31         android:layout_width="wrap_content"
     32         android:layout_height="match_parent"
     33         android:paddingStart="8dp"
     34         android:paddingEnd="8dp"
     35         android:background="@drawable/ic_notify_button_bg"
     36         android:enabled="false"
     37         >
     38         <com.android.systemui.statusbar.policy.Clock
     39             android:id="@+id/clock"
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content"
     42             android:layout_marginEnd="8dp"
     43             android:singleLine="true"
     44             android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock"
     45             android:layout_centerVertical="true"
     46             />
     47 
     48         <com.android.systemui.statusbar.policy.DateView android:id="@+id/date"
     49             android:layout_width="wrap_content"
     50             android:layout_height="wrap_content"
     51             android:singleLine="true"
     52             android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
     53             android:layout_toEndOf="@id/clock"
     54             android:layout_alignBaseline="@id/clock"
     55             />
     56     </RelativeLayout>
     57 
     58     <Space
     59         android:layout_width="0dp"
     60         android:layout_height="0dp"
     61         android:layout_weight="1"
     62         />
     63 
     64     <TextView
     65         android:id="@+id/header_debug_info"
     66         android:visibility="invisible"
     67         android:layout_width="wrap_content"
     68         android:layout_height="wrap_content"
     69         android:layout_gravity="center_vertical"
     70         android:fontFamily="sans-serif-condensed"
     71         android:textSize="11dp"
     72         android:textStyle="bold"
     73         android:textColor="#00A040"
     74         android:padding="2dp"
     75         />
     76 
     77     <ImageView android:id="@+id/clear_all_button"
     78         android:layout_width="50dp"
     79         android:layout_height="50dp"
     80         android:scaleType="center"
     81         android:src="@drawable/ic_notify_clear"
     82         android:background="@drawable/ic_notify_button_bg"
     83         android:contentDescription="@string/accessibility_clear_all"
     84         />     
     85 
     86     <FrameLayout android:id="@+id/settings_button_holder"
     87         android:layout_width="50dp"
     88         android:layout_height="50dp"
     89         android:layout_marginStart="12dp"
     90         >
     91         <ImageView android:id="@+id/settings_button"
     92             android:layout_width="50dp"
     93             android:layout_height="50dp"
     94             android:scaleType="center"
     95             android:src="@drawable/ic_notify_settings"
     96             android:background="@drawable/ic_notify_button_bg"
     97             android:contentDescription="@string/accessibility_desc_quick_settings"
     98             />
     99         <ImageView android:id="@+id/notification_button"
    100             android:layout_width="50dp"
    101             android:layout_height="50dp"
    102             android:scaleType="center"
    103             android:src="@drawable/ic_notifications"
    104             android:background="@drawable/ic_notify_button_bg"
    105             android:visibility="gone"
    106             android:contentDescription="@string/accessibility_notifications_button"
    107             />
    108     </FrameLayout>
    109 </LinearLayout>
    110