Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 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 xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:background="@color/black"
     22     android:orientation="vertical" >
     23 
     24     <FrameLayout
     25         xmlns:android="http://schemas.android.com/apk/res/android"
     26         xmlns:internal="http://schemas.android.com/apk/prv/res/android"
     27         android:id="@+id/swn_expanded_hitspace"
     28         android:layout_width="match_parent"
     29         android:layout_height="64dp"
     30         internal:layout_maxHeight="64dp"
     31         internal:layout_minHeight="64dp"
     32         android:background="@+drawable/notification_bg" >
     33 
     34         <ImageView
     35             android:id="@+id/notification_icon"
     36             android:layout_width="@dimen/notification_large_icon_width"
     37             android:layout_height="@dimen/notification_large_icon_height"
     38             android:background="@+drawable/notification_template_icon_bg"
     39             android:scaleType="center" />
     40 
     41         <LinearLayout
     42             android:layout_width="match_parent"
     43             android:layout_height="wrap_content"
     44             android:layout_gravity="fill_vertical"
     45             android:layout_marginStart="@dimen/notification_large_icon_width"
     46             android:gravity="center"
     47             android:minHeight="@dimen/notification_large_icon_height"
     48             android:orientation="vertical"
     49             android:paddingBottom="2dp"
     50             android:paddingEnd="8dp"
     51             android:paddingTop="2dp" >
     52 
     53             <LinearLayout
     54                 android:id="@+id/line1"
     55                 android:layout_width="match_parent"
     56                 android:layout_height="wrap_content"
     57                 android:layout_marginStart="8dp"
     58                 android:orientation="horizontal" >
     59 
     60                 <Chronometer
     61                     android:id="@+id/swn_expanded_chronometer"
     62                     android:layout_width="0dip"
     63                     android:layout_height="wrap_content"
     64                     android:layout_weight="1"
     65                     android:singleLine="true"
     66                     android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" />
     67             </LinearLayout>
     68 
     69             <TextView
     70                 android:id="@+id/swn_expanded_laps"
     71                 android:layout_width="match_parent"
     72                 android:layout_height="wrap_content"
     73                 android:layout_marginStart="8dp"
     74                 android:ellipsize="marquee"
     75                 android:fadingEdge="horizontal"
     76                 android:singleLine="true"
     77                 android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
     78                 android:visibility="gone" />
     79         </LinearLayout>
     80     </FrameLayout>
     81 
     82     <ImageView
     83         android:layout_width="match_parent"
     84         android:layout_height="1dip"
     85         android:background="#28ffffff" />
     86 
     87     <FrameLayout
     88         android:layout_width="match_parent"
     89         android:layout_height="wrap_content"
     90         android:background="@drawable/notification_bg_normal" >
     91 
     92         <LinearLayout
     93             android:layout_width="match_parent"
     94             android:layout_height="wrap_content"
     95             android:layout_marginStart="@dimen/notification_large_icon_width"
     96             android:divider="?android:attr/listDivider"
     97             android:dividerPadding="12dp"
     98             android:orientation="horizontal"
     99             android:showDividers="middle" >
    100 
    101             <TextView
    102                 android:id="@+id/swn_left_button"
    103                 style="?android:attr/borderlessButtonStyle"
    104                 android:layout_width="0dp"
    105                 android:layout_height="48dp"
    106                 android:layout_weight="1"
    107                 android:drawablePadding="8dp"
    108                 android:ellipsize="end"
    109                 android:gravity="start|center_vertical"
    110                 android:paddingStart="8dp"
    111                 android:singleLine="true"
    112                 android:textColor="#ccc"
    113                 android:textSize="14dp" />
    114 
    115             <TextView
    116                 android:id="@+id/swn_right_button"
    117                 style="?android:attr/borderlessButtonStyle"
    118                 android:layout_width="0dp"
    119                 android:layout_height="48dp"
    120                 android:layout_weight="1"
    121                 android:drawablePadding="8dp"
    122                 android:ellipsize="end"
    123                 android:gravity="start|center_vertical"
    124                 android:paddingStart="8dp"
    125                 android:singleLine="true"
    126                 android:textColor="#ccc"
    127                 android:textSize="14dp" />
    128         </LinearLayout>
    129     </FrameLayout>
    130 
    131 </LinearLayout>