1<!-- 2 ~ Copyright (C) 2020 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<FrameLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:sysui="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/volume_dialog_container" 20 android:layout_width="wrap_content" 21 android:layout_height="wrap_content" 22 android:background="@android:color/transparent" 23 android:theme="@style/volume_dialog_theme"> 24 25 <FrameLayout 26 android:id="@+id/volume_dialog" 27 android:layout_width="wrap_content" 28 android:layout_height="wrap_content" 29 android:layout_gravity="right" 30 android:background="@android:color/transparent" 31 android:padding="@dimen/volume_dialog_panel_transparent_padding" 32 android:clipToPadding="false"> 33 34 <LinearLayout 35 android:id="@+id/volume_dialog_rows_container" 36 android:layout_width="wrap_content" 37 android:layout_height="wrap_content" 38 android:layout_gravity="right" 39 android:orientation="vertical" 40 android:translationZ="@dimen/volume_dialog_elevation" 41 android:clipChildren="false" 42 android:clipToPadding="false" 43 android:background="@android:color/transparent"> 44 45 <LinearLayout 46 android:id="@+id/volume_dialog_rows" 47 android:layout_width="wrap_content" 48 android:layout_height="wrap_content" 49 android:gravity="center" 50 android:orientation="horizontal" 51 android:background="@drawable/tv_volume_dialog_background"> 52 <!-- volume rows added and removed here! :-) --> 53 </LinearLayout> 54 55 </LinearLayout> 56 57 <FrameLayout 58 android:id="@+id/odi_captions" 59 android:layout_width="@dimen/volume_dialog_caption_size" 60 android:layout_height="@dimen/volume_dialog_caption_size" 61 android:layout_marginRight="68dp" 62 android:layout_gravity="right" 63 android:clipToPadding="false" 64 android:translationZ="@dimen/volume_dialog_elevation" 65 android:background="@drawable/rounded_bg_full"> 66 67 <com.android.systemui.volume.CaptionsToggleImageButton 68 android:id="@+id/odi_captions_icon" 69 android:src="@drawable/ic_volume_odi_captions_disabled" 70 style="@style/VolumeButtons" 71 android:background="@drawable/rounded_ripple" 72 android:layout_width="match_parent" 73 android:layout_height="match_parent" 74 android:tint="@color/caption_tint_color_selector" 75 android:layout_gravity="center" 76 android:soundEffectsEnabled="false"/> 77 78 </FrameLayout> 79 80 <ViewStub 81 android:id="@+id/odi_captions_tooltip_stub" 82 android:inflatedId="@+id/odi_captions_tooltip_view" 83 android:layout="@layout/volume_tool_tip_view" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_marginRight="@dimen/volume_tool_tip_right_margin" 87 android:layout_marginTop="@dimen/volume_tool_tip_top_margin" 88 android:layout_gravity="right"/> 89 90 </FrameLayout> 91 92</FrameLayout> 93