- Fix occasional crash on device boot - No more overlapping text Test: manual Fixes: 150326599 Fixes: 149767075 Change-Id: I3032a2913f2ca4ce57af596c180faa819e4c9363
		
			
				
	
	
		
			89 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			89 lines
		
	
	
		
			3.7 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">
 | 
						|
        <LinearLayout
 | 
						|
            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_weight="1"
 | 
						|
                android:layout_width="0dp"
 | 
						|
                android:layout_height="wrap_content"
 | 
						|
                android:layout_centerVertical="true"
 | 
						|
                android:ellipsize="end"
 | 
						|
                android:singleLine="true"
 | 
						|
                android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"
 | 
						|
                android:layout_toStartOf="@id/alerted_icon"
 | 
						|
                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="invisible"
 | 
						|
                android:layout_toEndOf="@id/title"
 | 
						|
                android:layout_toStartOf="@id/timestamp"
 | 
						|
                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:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
 | 
						|
                android:textAlignment="viewEnd"
 | 
						|
                />
 | 
						|
        </LinearLayout>
 | 
						|
 | 
						|
        <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:paddingTop="3dp"
 | 
						|
            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
 | 
						|
            android:textAlignment="viewStart" />
 | 
						|
 | 
						|
    </LinearLayout>
 | 
						|
 | 
						|
</LinearLayout>
 |