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