1<!-- 2 Copyright (C) 2024 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<androidx.constraintlayout.motion.widget.MotionLayout xmlns:android="http://schemas.android.com/apk/res/android" 17 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/volume_dialog_root" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent" 22 app:layoutDescription="@xml/volume_dialog_scene"> 23 24 <View 25 android:id="@+id/volume_dialog_background" 26 android:layout_width="@dimen/volume_dialog_width" 27 android:layout_height="0dp" 28 android:layout_marginTop="@dimen/volume_dialog_background_vertical_margin" 29 android:layout_marginBottom="@dimen/volume_dialog_background_vertical_margin" 30 android:background="@drawable/volume_dialog_background" 31 app:layout_constraintBottom_toBottomOf="@id/volume_dialog_settings" 32 app:layout_constraintEnd_toEndOf="@id/volume_dialog_main_slider_container" 33 app:layout_constraintStart_toStartOf="@id/volume_dialog_main_slider_container" 34 app:layout_constraintTop_toTopOf="@id/volume_ringer_drawer" /> 35 36 <include 37 android:id="@id/volume_ringer_drawer" 38 layout="@layout/volume_ringer_drawer" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_marginBottom="@dimen/volume_dialog_components_spacing" 42 app:layout_constraintBottom_toTopOf="@id/volume_dialog_main_slider_container" 43 app:layout_constraintEnd_toEndOf="@id/volume_dialog_main_slider_container" 44 app:layout_constraintStart_toStartOf="@id/volume_dialog_main_slider_container" 45 app:layout_constraintTop_toTopOf="parent" 46 app:layout_constraintVertical_bias="1" /> 47 48 <include 49 android:id="@+id/volume_dialog_main_slider_container" 50 layout="@layout/volume_dialog_slider" /> 51 52 <ImageButton 53 android:id="@+id/volume_dialog_settings" 54 android:layout_width="@dimen/volume_dialog_button_size" 55 android:layout_height="@dimen/volume_dialog_button_size" 56 android:layout_marginTop="@dimen/volume_dialog_components_spacing" 57 android:background="@drawable/ripple_drawable_20dp" 58 android:contentDescription="@string/accessibility_volume_settings" 59 android:soundEffectsEnabled="false" 60 android:src="@drawable/horizontal_ellipsis" 61 android:tint="?androidprv:attr/materialColorPrimary" 62 app:layout_constraintBottom_toBottomOf="parent" 63 app:layout_constraintEnd_toEndOf="@id/volume_dialog_main_slider_container" 64 app:layout_constraintStart_toStartOf="@id/volume_dialog_main_slider_container" 65 app:layout_constraintTop_toBottomOf="@id/volume_dialog_main_slider_container" 66 app:layout_constraintVertical_bias="0" /> 67 68 <LinearLayout 69 android:id="@+id/volume_dialog_floating_sliders_container" 70 android:layout_width="wrap_content" 71 android:layout_height="0dp" 72 android:layout_marginTop="@dimen/volume_dialog_floating_sliders_vertical_padding_negative" 73 android:layout_marginBottom="@dimen/volume_dialog_floating_sliders_vertical_padding_negative" 74 android:divider="@drawable/volume_dialog_floating_sliders_spacer" 75 android:gravity="bottom" 76 android:orientation="horizontal" 77 android:showDividers="middle|beginning|end" 78 app:layout_constraintBottom_toBottomOf="@id/volume_dialog_main_slider_container" 79 app:layout_constraintEnd_toStartOf="@id/volume_dialog_background" 80 app:layout_constraintTop_toTopOf="@id/volume_dialog_main_slider_container" /> 81 82</androidx.constraintlayout.motion.widget.MotionLayout>