| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2019 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 |
| --> |
| |
| <com.android.systemui.volume.VolumeToolTipView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/tooltip_view" |
| android:layout_height="wrap_content" |
| android:layout_width="wrap_content" |
| android:orientation="horizontal"> |
| |
| <LinearLayout |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:paddingStart="16dp" |
| android:paddingEnd="4dp" |
| android:background="@drawable/volume_tool_tip_rounded_bg" |
| android:orientation="horizontal"> |
| |
| <TextView |
| android:id="@+id/text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:textColor="@android:color/white" |
| android:text="@string/volume_odi_captions_tip" |
| android:textSize="14sp"/> |
| <ImageView |
| android:id="@+id/dismiss" |
| android:layout_width="40dp" |
| android:layout_height="40dp" |
| android:layout_gravity="center_vertical" |
| android:padding="12dp" |
| android:layout_marginStart="2dp" |
| android:layout_marginEnd="2dp" |
| android:alpha="0.7" |
| android:src="@drawable/ic_remove_no_shadow" |
| android:tint="@android:color/white" |
| android:background="?android:attr/selectableItemBackgroundBorderless" |
| android:contentDescription="@string/accessibility_volume_close_odi_captions_tip"/> |
| </LinearLayout> |
| |
| <View |
| android:id="@+id/arrow" |
| android:layout_width="8dp" |
| android:layout_height="10dp" |
| android:layout_marginLeft="-2dp" |
| android:layout_gravity="center_vertical"/> |
| |
| </com.android.systemui.volume.VolumeToolTipView> |