1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2017 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<LinearLayout 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 android:orientation="horizontal" 23 > 24 <include layout="@layout/notification_template_icon_group" 25 android:layout_width="@dimen/notification_large_icon_width" 26 android:layout_height="@dimen/notification_large_icon_height" 27 /> 28 <LinearLayout 29 android:id="@+id/notification_main_column_container" 30 android:layout_width="0dp" 31 android:layout_weight="1" 32 android:layout_height="wrap_content" 33 android:paddingTop="@dimen/notification_main_column_padding_top" 34 android:minHeight="@dimen/notification_large_icon_height" 35 android:orientation="horizontal" 36 android:layout_toLeftOf="@id/cancel_action" 37 android:layout_toStartOf="@id/cancel_action"> 38 <FrameLayout 39 android:id="@+id/notification_main_column" 40 android:layout_width="match_parent" 41 android:layout_height="wrap_content" 42 android:layout_weight="1" 43 android:layout_marginLeft="@dimen/notification_content_margin_start" 44 android:layout_marginStart="@dimen/notification_content_margin_start" 45 android:layout_marginRight="8dp" 46 android:layout_marginEnd="8dp" 47 android:layout_marginBottom="8dp"/> 48 <FrameLayout 49 android:id="@+id/right_side" 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:layout_marginRight="8dp" 53 android:layout_marginEnd="8dp" 54 android:paddingTop="@dimen/notification_right_side_padding_top"> 55 <DateTimeView android:id="@+id/time" 56 android:textAppearance="@style/TextAppearance.Compat.Notification.Time.Media" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:singleLine="true" 60 android:layout_gravity="end|top" 61 android:visibility="gone" 62 /> 63 <Chronometer android:id="@+id/chronometer" 64 android:textAppearance="@style/TextAppearance.Compat.Notification.Time.Media" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:singleLine="true" 68 android:layout_gravity="end|top" 69 android:visibility="gone" 70 /> 71 <TextView android:id="@+id/info" 72 android:textAppearance="@style/TextAppearance.Compat.Notification.Info.Media" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_marginTop="20dp" 76 android:layout_gravity="end|bottom" 77 android:singleLine="true" 78 /> 79 </FrameLayout> 80 </LinearLayout> 81 <LinearLayout 82 android:id="@+id/media_actions" 83 android:layout_width="wrap_content" 84 android:layout_height="match_parent" 85 android:layout_gravity="center_vertical|end" 86 android:orientation="horizontal" 87 android:layoutDirection="ltr" 88 > 89 <!-- media buttons will be added here --> 90 </LinearLayout> 91 <include layout="@layout/notification_media_cancel_action" 92 android:layout_width="48dp" 93 android:layout_height="match_parent" 94 android:layout_marginRight="6dp" 95 android:layout_marginEnd="6dp"/> 96 <ImageView android:id="@+id/end_padder" 97 android:layout_width="6dp" 98 android:layout_height="match_parent" 99 /> 100</LinearLayout> 101