1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ** 4 ** Copyright 2012, Google Inc. 5 ** 6 ** Licensed under the Apache License, Version 2.0 (the "License"); 7 ** you may not use this file except in compliance with the License. 8 ** You may obtain a copy of the License at 9 ** 10 ** http://www.apache.org/licenses/LICENSE-2.0 11 ** 12 ** Unless required by applicable law or agreed to in writing, software 13 ** distributed under the License is distributed on an "AS IS" BASIS, 14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ** See the License for the specific language governing permissions and 16 ** limitations under the License. 17 */ 18 --> 19 20 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 21 xmlns:internal="http://schemas.android.com/apk/prv/res/android" 22 android:id="@+id/status_bar_latest_event_content" 23 android:layout_width="match_parent" 24 android:layout_height="64dp" 25 internal:layout_maxHeight="64dp" 26 internal:layout_minHeight="64dp" 27 android:background="@drawable/notification_bg" > 28 29 <ImageView 30 android:layout_width="@android:dimen/notification_large_icon_width" 31 android:layout_height="@android:dimen/notification_large_icon_height" 32 android:background="@color/notification_template_icon_low_bg" 33 android:scaleType="center" 34 android:src="@drawable/stat_notify_email" /> 35 36 <LinearLayout 37 android:layout_width="match_parent" 38 android:layout_height="wrap_content" 39 android:layout_gravity="fill_vertical" 40 android:gravity="top" 41 android:minHeight="@android:dimen/notification_large_icon_height" 42 android:orientation="horizontal" 43 android:paddingBottom="2dp" 44 android:paddingTop="2dp" 45 style="@style/UndoNotificationStyle" > 46 47 <TextView 48 android:id="@+id/description_text" 49 android:layout_width="0dp" 50 android:layout_height="match_parent" 51 android:layout_marginLeft="8dp" 52 android:layout_marginRight="8dp" 53 android:layout_weight="1" 54 android:ellipsize="marquee" 55 android:fadingEdge="horizontal" 56 android:gravity="center_vertical" /> 57 58 <ImageView 59 android:layout_width="1dip" 60 android:layout_height="match_parent" 61 android:layout_marginBottom="10dip" 62 android:layout_marginRight="12dip" 63 android:layout_marginTop="10dip" 64 android:src="#aaaaaa" /> 65 66 <ImageView 67 android:layout_width="wrap_content" 68 android:layout_height="match_parent" 69 android:layout_gravity="center_vertical" 70 android:layout_marginRight="4dip" 71 android:src="@drawable/ic_menu_revert_holo_dark" /> 72 73 <TextView 74 style="@style/UndoTextStyle" 75 android:layout_width="wrap_content" 76 android:layout_height="match_parent" 77 android:layout_marginLeft="4dip" 78 android:gravity="center_vertical" 79 android:text="@string/undo" 80 android:textAllCaps="true" /> 81 </LinearLayout> 82 83 </FrameLayout>