notification_template_big_text.xml revision ca7b7d0566a4d98701067cff915a78b63908e6f5
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_marginLeft="@dimen/notification_large_icon_width" 36 android:orientation="vertical" 37 android:paddingLeft="12dp" 38 android:paddingRight="12dp" 39 android:paddingTop="4dp" 40 android:paddingBottom="4dp" 41 android:gravity="center_vertical" 42 > 43 <LinearLayout 44 android:layout_width="match_parent" 45 android:layout_height="wrap_content" 46 android:orientation="vertical" 47 android:layout_weight="1" 48 > 49 <LinearLayout 50 android:id="@+id/line1" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:orientation="horizontal" 54 android:layout_gravity="top" 55 android:layout_weight="0" 56 > 57 <TextView android:id="@+id/title" 58 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:singleLine="true" 62 android:ellipsize="marquee" 63 android:fadingEdge="horizontal" 64 android:layout_weight="1" 65 /> 66 <ViewStub android:id="@+id/time" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_gravity="center" 70 android:layout_weight="0" 71 android:visibility="gone" 72 android:layout="@layout/notification_template_part_time" 73 /> 74 <ViewStub android:id="@+id/chronometer" 75 android:layout_width="wrap_content" 76 android:layout_height="wrap_content" 77 android:layout_gravity="center" 78 android:layout_weight="0" 79 android:visibility="gone" 80 android:layout="@layout/notification_template_part_chronometer" 81 /> 82 </LinearLayout> 83 <TextView android:id="@+id/text2" 84 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Line2" 85 android:layout_width="match_parent" 86 android:layout_height="wrap_content" 87 android:layout_marginTop="-2dp" 88 android:layout_marginBottom="-2dp" 89 android:singleLine="true" 90 android:fadingEdge="horizontal" 91 android:ellipsize="marquee" 92 android:layout_weight="0" 93 android:visibility="gone" 94 /> 95 <TextView android:id="@+id/big_text" 96 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" 97 android:layout_width="match_parent" 98 android:layout_height="0dp" 99 android:layout_marginTop="2dp" 100 android:layout_marginBottom="2dp" 101 android:singleLine="false" 102 android:visibility="gone" 103 android:maxLines="8" 104 android:ellipsize="end" 105 android:layout_weight="1" 106 /> 107 </LinearLayout> 108 <LinearLayout 109 android:id="@+id/actions" 110 android:layout_width="match_parent" 111 android:layout_height="0dp" 112 android:orientation="vertical" 113 android:visibility="gone" 114 android:layout_weight="1" 115 > 116 <!-- actions will be added here --> 117 </LinearLayout> 118 <TextView android:id="@+id/overflow_title" 119 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title" 120 android:layout_width="match_parent" 121 android:layout_height="wrap_content" 122 android:singleLine="true" 123 android:ellipsize="marquee" 124 android:fadingEdge="horizontal" 125 android:visibility="gone" 126 android:layout_weight="0" 127 /> 128 <LinearLayout 129 android:id="@+id/line3" 130 android:layout_width="match_parent" 131 android:layout_height="wrap_content" 132 android:orientation="horizontal" 133 android:layout_weight="1" 134 > 135 <TextView android:id="@+id/text" 136 android:textAppearance="@style/TextAppearance.StatusBar.EventContent" 137 android:layout_width="0dp" 138 android:layout_height="wrap_content" 139 android:layout_weight="1" 140 android:layout_gravity="center" 141 android:singleLine="true" 142 android:ellipsize="marquee" 143 android:fadingEdge="horizontal" 144 /> 145 <TextView android:id="@+id/info" 146 android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info" 147 android:layout_width="wrap_content" 148 android:layout_height="wrap_content" 149 android:layout_gravity="center" 150 android:layout_weight="0" 151 android:singleLine="true" 152 android:gravity="center" 153 android:paddingLeft="8dp" 154 /> 155 <ImageView android:id="@+id/right_icon" 156 android:layout_width="wrap_content" 157 android:layout_height="wrap_content" 158 android:layout_gravity="center" 159 android:layout_weight="0" 160 android:scaleType="center" 161 android:paddingLeft="8dp" 162 android:visibility="gone" 163 android:drawableAlpha="180" 164 /> 165 </LinearLayout> 166 <ProgressBar 167 android:id="@android:id/progress" 168 android:layout_width="match_parent" 169 android:layout_height="wrap_content" 170 android:visibility="gone" 171 android:layout_weight="0" 172 style="?android:attr/progressBarStyleHorizontal" 173 /> 174 </LinearLayout> 175</FrameLayout> 176