1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2012 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:internal="http://schemas.android.com/apk/prv/res/android" 18 android:background="@android:drawable/notification_bg" 19 android:id="@+id/status_bar_latest_event_content" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 internal:layout_minHeight="65dp" 23 internal:layout_maxHeight="unbounded" 24 > 25 <ImageView android:id="@+id/icon" 26 android:layout_width="@dimen/notification_large_icon_width" 27 android:layout_height="@dimen/notification_large_icon_height" 28 android:background="@android:drawable/notification_template_icon_bg" 29 android:scaleType="center" 30 /> 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_gravity="fill_vertical" 35 android:layout_marginStart="@dimen/notification_large_icon_width" 36 android:orientation="vertical" 37 android:paddingTop="0dp" 38 android:paddingBottom="2dp" 39 android:gravity="top" 40 > 41 <LinearLayout 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:minHeight="@dimen/notification_large_icon_height" 45 android:orientation="vertical" 46 android:layout_marginStart="8dp" 47 android:layout_marginEnd="8dp" 48 android:layout_weight="1" 49 > 50 <LinearLayout 51 android:id="@+id/line1" 52 android:layout_width="match_parent" 53 android:layout_height="wrap_content" 54 android:paddingTop="8dp" 55 android:orientation="horizontal" 56 android:layout_gravity="top" 57 android:layout_weight="0" 58 > 59 <TextView android:id="@+id/title" 60 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" 61 android:layout_width="match_parent" 62 android:layout_height="wrap_content" 63 android:singleLine="true" 64 android:ellipsize="marquee" 65 android:fadingEdge="horizontal" 66 android:layout_weight="1" 67 /> 68 <ViewStub android:id="@+id/time" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:layout_gravity="center" 72 android:layout_weight="0" 73 android:visibility="gone" 74 android:layout="@layout/notification_template_part_time" 75 /> 76 <ViewStub android:id="@+id/chronometer" 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_gravity="center" 80 android:layout_weight="0" 81 android:visibility="gone" 82 android:layout="@layout/notification_template_part_chronometer" 83 /> 84 </LinearLayout> 85 <TextView android:id="@+id/text2" 86 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Line2" 87 android:layout_width="match_parent" 88 android:layout_height="wrap_content" 89 android:layout_marginTop="-2dp" 90 android:layout_marginBottom="-2dp" 91 android:layout_marginEnd="8dp" 92 android:singleLine="true" 93 android:fadingEdge="horizontal" 94 android:ellipsize="marquee" 95 android:layout_weight="0" 96 android:visibility="gone" 97 /> 98 <ProgressBar 99 android:id="@android:id/progress" 100 android:layout_width="match_parent" 101 android:layout_height="12dp" 102 android:layout_marginBottom="8dp" 103 android:layout_marginEnd="8dp" 104 android:visibility="gone" 105 android:layout_weight="0" 106 style="?android:attr/progressBarStyleHorizontal" 107 /> 108 <TextView android:id="@+id/big_text" 109 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" 110 android:layout_width="match_parent" 111 android:layout_height="0dp" 112 android:layout_marginBottom="10dp" 113 android:layout_marginEnd="8dp" 114 android:singleLine="false" 115 android:visibility="gone" 116 android:maxLines="8" 117 android:ellipsize="end" 118 android:layout_weight="1" 119 /> 120 </LinearLayout> 121 <ImageView 122 android:layout_width="match_parent" 123 android:layout_height="1dip" 124 android:layout_marginTop="-1px" 125 android:id="@+id/action_divider" 126 android:visibility="gone" 127 android:background="?android:attr/dividerHorizontal" /> 128 <include 129 layout="@layout/notification_action_list" 130 android:layout_width="match_parent" 131 android:layout_height="0dp" 132 android:visibility="gone" 133 android:layout_weight="1" 134 /> 135 <ImageView 136 android:layout_width="match_parent" 137 android:layout_height="1px" 138 android:id="@+id/overflow_divider" 139 android:layout_marginBottom="8dp" 140 android:visibility="visible" 141 android:background="?android:attr/dividerHorizontal" /> 142 <LinearLayout 143 android:id="@+id/line3" 144 android:layout_width="match_parent" 145 android:layout_height="wrap_content" 146 android:layout_marginStart="8dp" 147 android:layout_marginBottom="8dp" 148 android:layout_marginEnd="8dp" 149 android:orientation="horizontal" 150 android:layout_weight="0" 151 android:gravity="center_vertical" 152 > 153 <TextView android:id="@+id/text" 154 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" 155 android:layout_width="0dp" 156 android:layout_height="wrap_content" 157 android:layout_weight="1" 158 android:layout_gravity="center" 159 android:singleLine="true" 160 android:ellipsize="marquee" 161 android:fadingEdge="horizontal" 162 /> 163 <TextView android:id="@+id/info" 164 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info" 165 android:layout_width="wrap_content" 166 android:layout_height="wrap_content" 167 android:layout_gravity="center" 168 android:layout_weight="0" 169 android:singleLine="true" 170 android:gravity="center" 171 android:paddingStart="8dp" 172 /> 173 <ImageView android:id="@+id/right_icon" 174 android:layout_width="16dp" 175 android:layout_height="16dp" 176 android:layout_gravity="center" 177 android:layout_weight="0" 178 android:layout_marginStart="8dp" 179 android:scaleType="centerInside" 180 android:visibility="gone" 181 android:drawableAlpha="153" 182 /> 183 </LinearLayout> 184 </LinearLayout> 185</FrameLayout> 186