1 <!-- 2 Copyright (C) 2013 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 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 android:layout_width="match_parent" 18 android:layout_height="wrap_content" 19 android:paddingBottom="6dp" 20 android:paddingTop="6dp" 21 android:orientation="vertical" 22 android:background="?android:attr/selectableItemBackground" 23 > 24 25 <RelativeLayout 26 android:layout_width="match_parent" 27 android:layout_height="@*android:dimen/status_bar_icon_size" 28 android:layout_marginBottom="4dp" 29 > 30 31 <ImageView 32 android:id="@android:id/icon" 33 android:layout_width="@*android:dimen/status_bar_icon_size" 34 android:layout_height="@*android:dimen/status_bar_icon_size" 35 android:layout_centerVertical="true" 36 android:layout_toEndOf="@id/pkgicon" 37 android:layout_marginStart="0dp" 38 android:layout_marginEnd="8dp" 39 android:contentDescription="@null" 40 android:adjustViewBounds="true" 41 android:maxHeight="@*android:dimen/status_bar_icon_size" 42 android:maxWidth="@*android:dimen/status_bar_icon_size" 43 android:scaleType="fitCenter" /> 44 45 <TextView 46 android:id="@android:id/title" 47 android:layout_width="match_parent" 48 android:layout_height="wrap_content" 49 android:layout_centerVertical="true" 50 android:layout_toStartOf="@+id/timestamp" 51 android:layout_toEndOf="@android:id/icon" 52 android:ellipsize="end" 53 android:singleLine="true" 54 android:textAppearance="?android:attr/textAppearanceSmall" 55 android:textStyle="bold" 56 android:textAlignment="viewStart" 57 android:labelFor="@android:id/button2" /> 58 59 <DateTimeView 60 android:id="@+id/timestamp" 61 android:layout_width="wrap_content" 62 android:layout_height="wrap_content" 63 android:layout_alignBottom="@android:id/widget_frame" 64 android:layout_alignParentEnd="true" 65 android:layout_alignTop="@android:id/widget_frame" 66 android:layout_centerVertical="true" 67 android:ellipsize="end" 68 android:singleLine="true" 69 android:textAppearance="?android:attr/textAppearanceSmall" 70 android:textAlignment="viewEnd" 71 /> 72 </RelativeLayout> 73 74 <TextView 75 android:id="@+id/extra" 76 android:layout_width="match_parent" 77 android:layout_height="wrap_content" 78 android:orientation="horizontal" 79 android:layout_marginStart="30dp" 80 android:ellipsize="end" 81 android:singleLine="true" 82 android:textAppearance="?android:attr/textAppearanceSmall" 83 android:textAlignment="viewStart" 84 /> 85 86 <LinearLayout 87 android:layout_width="match_parent" 88 android:layout_height="@*android:dimen/status_bar_icon_size" 89 android:orientation="horizontal" 90 android:layout_marginStart="30dp" 91 > 92 93 <ImageView 94 android:id="@+id/pkgicon" 95 android:layout_width="@*android:dimen/status_bar_icon_size" 96 android:layout_height="@*android:dimen/status_bar_icon_size" 97 android:layout_marginStart="0dp" 98 android:layout_marginEnd="6dp" 99 android:contentDescription="@null" 100 android:adjustViewBounds="true" 101 android:maxHeight="@*android:dimen/status_bar_icon_size" 102 android:maxWidth="@*android:dimen/status_bar_icon_size" 103 android:scaleType="fitCenter" /> 104 105 <TextView 106 android:id="@+id/pkgname" 107 android:layout_width="match_parent" 108 android:layout_height="wrap_content" 109 android:layout_gravity="left|center_vertical" 110 android:ellipsize="end" 111 android:singleLine="true" 112 android:textAppearance="?android:attr/textAppearanceSmall" 113 android:textAlignment="viewStart" 114 /> 115 116 </LinearLayout> 117 </LinearLayout>