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:orientation="vertical" > 22 23 <FrameLayout 24 xmlns:android="http://schemas.android.com/apk/res/android" 25 xmlns:internal="http://schemas.android.com/apk/prv/res/android" 26 android:id="@+id/swn_expanded_hitspace" 27 android:layout_width="match_parent" 28 android:layout_height="64dp" 29 internal:layout_maxHeight="64dp" 30 internal:layout_minHeight="64dp" 31 android:background="@drawable/notification_background" > 32 33 <include layout="@layout/stopwatch_notification_icon"/> 34 35 <LinearLayout 36 android:layout_width="match_parent" 37 android:layout_height="wrap_content" 38 android:layout_gravity="fill_vertical" 39 android:layout_marginStart="@dimen/notification_icon_size" 40 android:gravity="center" 41 android:minHeight="@dimen/notification_icon_size" 42 android:orientation="vertical" 43 android:paddingBottom="2dp" 44 android:paddingEnd="8dp" 45 android:paddingTop="2dp" > 46 47 <LinearLayout 48 android:id="@+id/line1" 49 android:layout_width="match_parent" 50 android:layout_height="wrap_content" 51 android:layout_marginStart="8dp" 52 android:orientation="horizontal" > 53 54 <Chronometer 55 android:id="@+id/swn_expanded_chronometer" 56 android:layout_width="0dip" 57 android:layout_height="wrap_content" 58 android:layout_weight="1" 59 android:singleLine="true" 60 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" /> 61 </LinearLayout> 62 63 <TextView 64 android:id="@+id/swn_expanded_laps" 65 android:layout_width="match_parent" 66 android:layout_height="wrap_content" 67 android:layout_marginStart="8dp" 68 android:ellipsize="marquee" 69 android:fadingEdge="horizontal" 70 android:singleLine="true" 71 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" 72 android:visibility="gone" /> 73 </LinearLayout> 74 </FrameLayout> 75 76 <ImageView 77 android:layout_width="match_parent" 78 android:layout_height="1dip" 79 android:background="@color/black_16p" 80 android:contentDescription="@null" /> 81 82 <FrameLayout 83 android:layout_width="match_parent" 84 android:layout_height="wrap_content"> 85 86 <LinearLayout 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:layout_marginStart="@dimen/notification_icon_size" 90 android:divider="@drawable/divider" 91 android:dividerPadding="12dp" 92 android:orientation="horizontal" 93 android:showDividers="middle" > 94 95 <TextView 96 android:id="@+id/swn_left_button" 97 android:layout_width="0dp" 98 android:layout_height="48dp" 99 android:layout_weight="1" 100 android:background="@drawable/notification_background" 101 android:drawablePadding="8dp" 102 android:ellipsize="end" 103 android:gravity="start|center_vertical" 104 android:paddingStart="8dp" 105 android:singleLine="true" 106 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" /> 107 108 <TextView 109 android:id="@+id/swn_right_button" 110 android:layout_width="0dp" 111 android:layout_height="48dp" 112 android:layout_weight="1" 113 android:background="@drawable/notification_background" 114 android:drawablePadding="8dp" 115 android:ellipsize="end" 116 android:gravity="start|center_vertical" 117 android:paddingStart="8dp" 118 android:singleLine="true" 119 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" /> 120 </LinearLayout> 121 </FrameLayout> 122 123</LinearLayout>