1<!-- 2 Copyright (C) 2015 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<RelativeLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 android:id="@+id/volume_dialog" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:layout_marginBottom="@dimen/volume_dialog_margin_bottom" 22 android:background="@drawable/volume_dialog_background" 23 android:paddingTop="@dimen/volume_dialog_padding_top" 24 android:translationZ="4dp" > 25 26 <LinearLayout 27 android:id="@+id/volume_dialog_content" 28 android:layout_width="match_parent" 29 android:layout_height="wrap_content" 30 android:orientation="vertical" > 31 32 <LinearLayout 33 android:id="@+id/volume_dialog_rows" 34 android:layout_width="match_parent" 35 android:layout_height="wrap_content" 36 android:paddingEnd="@dimen/volume_button_size" 37 android:orientation="vertical" > 38 <!-- volume rows added and removed here! :-) --> 39 </LinearLayout> 40 41 <include layout="@layout/volume_zen_footer" /> 42 43 <!-- Only shown from Tuner setting --> 44 <include layout="@layout/tuner_zen_mode_panel" /> 45 </LinearLayout> 46 47 <LinearLayout 48 android:id="@+id/volume_dialog_content" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:orientation="vertical" 52 android:layout_alignParentEnd="true" 53 android:layout_alignParentTop="true" 54 android:layout_marginEnd="@dimen/volume_expander_margin_end" > 55 <TextView 56 android:layout_width="wrap_content" 57 android:layout_height="wrap_content" 58 android:ellipsize="end" 59 android:maxLines="1" 60 android:textAppearance="@style/TextAppearance.Volume.Header" /> 61 <com.android.keyguard.AlphaOptimizedImageButton 62 xmlns:android="http://schemas.android.com/apk/res/android" 63 xmlns:tools="http://schemas.android.com/tools" 64 android:id="@+id/volume_expand_button" 65 style="@style/VolumeButtons" 66 android:layout_width="@dimen/volume_button_size" 67 android:layout_height="@dimen/volume_button_size" 68 android:clickable="true" 69 android:soundEffectsEnabled="false" 70 android:src="@drawable/ic_volume_collapse_animation" 71 android:background="@drawable/ripple_drawable" 72 tools:ignore="RtlHardcoded" 73 /> 74 75 </LinearLayout> 76</RelativeLayout> 77