1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2014 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17 18<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/status_bar_latest_event_content" 20 android:layout_width="match_parent" 21 android:layout_height="64dp" 22 > 23 <ImageView android:id="@+id/icon" 24 android:layout_width="40dp" 25 android:layout_height="40dp" 26 android:layout_marginTop="12dp" 27 android:layout_marginStart="12dp" 28 android:layout_marginEnd="12dp" 29 android:scaleType="centerInside" 30 /> 31 <DateTimeView android:id="@+id/time" 32 android:textAppearance="@android:style/TextAppearance.Material.Notification.Time" 33 android:layout_width="wrap_content" 34 android:layout_height="wrap_content" 35 android:layout_marginEnd="8dp" 36 android:layout_alignParentEnd="true" 37 android:layout_alignBaseline="@+id/title" 38 android:singleLine="true" 39 android:gravity="center" 40 android:paddingStart="8dp" 41 android:visibility="gone" 42 /> 43 <TextView android:id="@+id/title" 44 android:textAppearance="@android:style/TextAppearance.Material.Notification.Title" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:layout_toEndOf="@id/icon" 48 android:layout_toStartOf="@id/time" 49 android:singleLine="true" 50 android:ellipsize="marquee" 51 android:fadingEdge="horizontal" 52 /> 53 <ImageView android:id="@+id/profile_badge_line3" 54 android:layout_width="@*android:dimen/notification_badge_size" 55 android:layout_height="@*android:dimen/notification_badge_size" 56 android:layout_below="@id/title" 57 android:layout_marginStart="4dp" 58 android:layout_marginEnd="8dp" 59 android:layout_alignParentEnd="true" 60 android:scaleType="fitCenter" 61 android:visibility="gone" 62 /> 63 <TextView android:id="@+id/text" 64 android:textAppearance="@android:style/TextAppearance.Material.Notification" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_alignStart="@id/title" 68 android:layout_below="@id/title" 69 android:layout_toStartOf="@id/profile_badge_line3" 70 android:singleLine="true" 71 android:ellipsize="marquee" 72 android:fadingEdge="horizontal" 73 /> 74</RelativeLayout> 75