Bug: 137396965 Test: manual (cherry picked from commit 84b593d592a74aeddfce453bc8700180192199ed) Change-Id: Icac4000bd7323583f8a5f462ccb40826a4151765
94 lines
3.8 KiB
XML
94 lines
3.8 KiB
XML
<!--
|
|
Copyright (C) 2020 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="6dp"
|
|
android:paddingTop="6dp"
|
|
android:paddingStart="?android:attr/listPreferredItemPaddingStart"
|
|
android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
|
|
android:orientation="vertical"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_marginBottom="6dp">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@*android:dimen/status_bar_icon_size"
|
|
android:gravity="center_vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@color/material_grey_900"
|
|
android:textAlignment="viewStart"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/alerted_icon"
|
|
android:layout_width="@*android:dimen/status_bar_icon_size"
|
|
android:layout_height="@*android:dimen/status_bar_icon_size"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="6dp"
|
|
android:paddingTop="1dp"
|
|
android:scaleType="fitCenter"
|
|
android:visibility="gone"
|
|
android:layout_toEndOf="@id/title"
|
|
android:tint="?android:attr/textColorSecondary"
|
|
android:src="@drawable/ic_notifications_alert"/>
|
|
|
|
<DateTimeView
|
|
android:id="@+id/timestamp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textAlignment="viewEnd"
|
|
/>
|
|
</RelativeLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="left|center_vertical"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textAlignment="viewStart" />
|
|
|
|
<View
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0.5dp"
|
|
android:layout_marginTop="17dp"
|
|
android:background="@color/material_grey_300" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|