1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2018 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<merge 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:layout_height="wrap_content" 20 android:layout_width="wrap_content"> 21 22 <LinearLayout 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content" 25 android:paddingStart="24dp" 26 android:paddingEnd="4dp" 27 android:background="@drawable/arrow_toast_rounded_background" 28 android:layout_gravity="center_horizontal" 29 android:elevation="2dp" 30 android:orientation="horizontal"> 31 32 <TextView 33 android:id="@+id/text" 34 android:layout_width="0dp" 35 android:layout_height="wrap_content" 36 android:layout_weight="1" 37 android:layout_gravity="center_vertical" 38 android:textColor="@android:color/white" 39 android:textSize="16sp"/> 40 <ImageView 41 android:id="@+id/dismiss" 42 android:layout_width="40dp" 43 android:layout_height="40dp" 44 android:layout_gravity="center_vertical" 45 android:padding="10dp" 46 android:layout_marginStart="2dp" 47 android:layout_marginEnd="2dp" 48 android:alpha="0.7" 49 android:src="@drawable/ic_remove_no_shadow" 50 android:tint="@android:color/white" 51 android:background="?android:attr/selectableItemBackgroundBorderless" 52 android:contentDescription="@string/accessibility_close_task"/> 53 </LinearLayout> 54 55 <View 56 android:id="@+id/arrow" 57 android:elevation="2dp" 58 android:layout_width="10dp" 59 android:layout_height="8dp" 60 android:layout_marginTop="-2dp" 61 android:layout_gravity="center_horizontal"/> 62</merge> 63