1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2019 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<com.android.systemui.volume.VolumeToolTipView 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/tooltip_view" 21 android:layout_height="wrap_content" 22 android:layout_width="wrap_content" 23 android:orientation="horizontal"> 24 25 <LinearLayout 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:paddingStart="16dp" 29 android:paddingEnd="4dp" 30 android:background="@drawable/volume_tool_tip_rounded_bg" 31 android:orientation="horizontal"> 32 33 <TextView 34 android:id="@+id/text" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:layout_gravity="center_vertical" 38 android:textColor="@android:color/white" 39 android:text="@string/volume_odi_captions_tip" 40 android:textSize="14sp"/> 41 <ImageView 42 android:id="@+id/dismiss" 43 android:layout_width="40dp" 44 android:layout_height="40dp" 45 android:layout_gravity="center_vertical" 46 android:padding="12dp" 47 android:layout_marginStart="2dp" 48 android:layout_marginEnd="2dp" 49 android:alpha="0.7" 50 android:src="@drawable/ic_remove_no_shadow" 51 android:tint="@android:color/white" 52 android:background="?android:attr/selectableItemBackgroundBorderless" 53 android:contentDescription="@string/accessibility_volume_close_odi_captions_tip"/> 54 </LinearLayout> 55 56 <View 57 android:id="@+id/arrow" 58 android:layout_width="8dp" 59 android:layout_height="10dp" 60 android:layout_marginLeft="-2dp" 61 android:layout_gravity="center_vertical"/> 62 63</com.android.systemui.volume.VolumeToolTipView>