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