- Fix a crash if an app couldn't be launched - Fix the height of tap targets and overlap of text Fixes: 152977855 Fixes: 153199215 Change-Id: Id623f942c7663c977c61df3d1188fe498cab8acc
		
			
				
	
	
		
			133 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			133 lines
		
	
	
		
			5.3 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:paddingTop="6dp"
 | 
						|
    android:minHeight="48dp"
 | 
						|
    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:minHeight="@*android:dimen/status_bar_icon_size"
 | 
						|
        android:paddingBottom="6dp">
 | 
						|
 | 
						|
        <ImageView
 | 
						|
            android:id="@+id/icon"
 | 
						|
            android:layout_height="@*android:dimen/status_bar_icon_size"
 | 
						|
            android:layout_width="@*android:dimen/status_bar_icon_size"
 | 
						|
            android:layout_centerVertical="true"
 | 
						|
            android:layout_marginStart="0dp"
 | 
						|
            android:layout_marginEnd="8dp"
 | 
						|
            android:contentDescription="@null"
 | 
						|
            android:adjustViewBounds="true"
 | 
						|
            android:tint="?android:attr/textColorPrimary"
 | 
						|
            android:scaleType="fitCenter" />
 | 
						|
 | 
						|
        <TextView
 | 
						|
            android:id="@+id/pkgname"
 | 
						|
            android:layout_weight="1"
 | 
						|
            android:layout_width="0dp"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_centerVertical="true"
 | 
						|
            android:ellipsize="end"
 | 
						|
            android:singleLine="true"
 | 
						|
            android:textColor="?android:attr/textColorPrimary"
 | 
						|
            android:textAppearance="?android:attr/textAppearanceSmall"
 | 
						|
            android:marqueeRepeatLimit = "marquee_forever"
 | 
						|
            android:scrollHorizontally = "true"
 | 
						|
            android:textStyle="bold"
 | 
						|
            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:tint="?android:attr/textColorSecondary"
 | 
						|
            android:src="@drawable/ic_notifications_alert"
 | 
						|
        />
 | 
						|
 | 
						|
        <ImageView
 | 
						|
            android:id="@+id/profile_badge"
 | 
						|
            android:layout_width="@*android:dimen/status_bar_icon_size"
 | 
						|
            android:layout_height="@*android:dimen/status_bar_icon_size"
 | 
						|
            android:layout_centerVertical="true"
 | 
						|
            android:layout_marginEnd="6dp"
 | 
						|
            android:paddingTop="1dp"
 | 
						|
            android:scaleType="fitCenter"
 | 
						|
            android:contentDescription="@*android:string/notification_work_profile_content_description"
 | 
						|
            android:layout_toStartOf="@id/timestamp"
 | 
						|
        />
 | 
						|
 | 
						|
        <DateTimeView
 | 
						|
            android:id="@+id/timestamp"
 | 
						|
            android:layout_width="wrap_content"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:minHeight="@*android:dimen/status_bar_icon_size"
 | 
						|
            android:layout_alignBottom="@android:id/widget_frame"
 | 
						|
            android:layout_alignParentEnd="true"
 | 
						|
            android:layout_alignTop="@android:id/widget_frame"
 | 
						|
            android:layout_centerVertical="true"
 | 
						|
            android:ellipsize="end"
 | 
						|
            android:singleLine="true"
 | 
						|
            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
 | 
						|
            android:textAlignment="viewEnd"
 | 
						|
            />
 | 
						|
    </LinearLayout>
 | 
						|
 | 
						|
    <LinearLayout
 | 
						|
        android:layout_width="match_parent"
 | 
						|
        android:layout_height="wrap_content"
 | 
						|
        android:orientation="vertical"
 | 
						|
        android:layout_marginStart="30dp"
 | 
						|
        android:layout_marginBottom="6dp"
 | 
						|
        >
 | 
						|
 | 
						|
        <TextView
 | 
						|
            android:id="@+id/title"
 | 
						|
            android:layout_width="match_parent"
 | 
						|
            android:layout_height="wrap_content"
 | 
						|
            android:layout_gravity="left|center_vertical"
 | 
						|
            android:ellipsize="end"
 | 
						|
            android:singleLine="true"
 | 
						|
            android:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification.Title"
 | 
						|
            android:textAlignment="viewStart"
 | 
						|
        />
 | 
						|
 | 
						|
        <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:textAppearance="@*android:style/TextAppearance.DeviceDefault.Notification"
 | 
						|
            android:textAlignment="viewStart"
 | 
						|
        />
 | 
						|
 | 
						|
    </LinearLayout>
 | 
						|
</LinearLayout>
 |