blob: b3ff5d65dbab87c26118a856ea45826560c69264 [file] [log] [blame]
John Spurlock7f1df5e2014-05-31 19:11:40 -04001<!--
John Spurlockf88d8082015-03-25 18:09:51 -04002 Copyright (C) 2015 The Android Open Source Project
John Spurlock7f1df5e2014-05-31 19:11:40 -04003
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-->
Julia Reynoldsc791e052016-02-19 16:02:01 -050016<RelativeLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
John Spurlockf88d8082015-03-25 18:09:51 -040018 android:id="@+id/volume_dialog"
John Spurlock7e6809a2014-08-06 16:03:14 -040019 android:layout_width="match_parent"
John Spurlock7f1df5e2014-05-31 19:11:40 -040020 android:layout_height="wrap_content"
John Spurlock22def3d2015-06-17 11:56:12 -040021 android:layout_marginBottom="@dimen/volume_dialog_margin_bottom"
John Spurlockf88d8082015-03-25 18:09:51 -040022 android:background="@drawable/volume_dialog_background"
Julia Reynolds5f83c852016-06-15 12:53:31 -040023 android:translationZ="4dp" >
John Spurlock7f1df5e2014-05-31 19:11:40 -040024
John Spurlockf88d8082015-03-25 18:09:51 -040025 <LinearLayout
26 android:id="@+id/volume_dialog_content"
27 android:layout_width="match_parent"
28 android:layout_height="wrap_content"
Julia Reynolds568585b2016-07-25 08:55:15 -040029 android:orientation="vertical" >
John Spurlockf88d8082015-03-25 18:09:51 -040030
Julia Reynolds568585b2016-07-25 08:55:15 -040031 <LinearLayout
32 android:id="@+id/volume_dialog_rows"
33 android:layout_width="match_parent"
34 android:layout_height="wrap_content"
35 android:paddingEnd="@dimen/volume_button_size"
Julia Reynoldseded2fc2016-08-08 15:41:43 -040036 android:paddingTop="@dimen/volume_dialog_collapsed_padding_top"
Julia Reynolds568585b2016-07-25 08:55:15 -040037 android:orientation="vertical" >
38 <View android:id="@+id/spacer"
39 android:layout_width="match_parent"
40 android:layout_height="@dimen/volume_dialog_expanded_spacer"
41 android:visibility="gone"/>
42 <!-- volume rows added and removed here! :-) -->
43 </LinearLayout>
John Spurlockf88d8082015-03-25 18:09:51 -040044
John Spurlockd9c75db2015-04-28 11:19:13 -040045 <include layout="@layout/volume_zen_footer" />
Jason Monke138f552016-01-18 09:21:45 -050046
47 <!-- Only shown from Tuner setting -->
Jason Monkaa911b32016-02-10 21:01:30 -050048 <include layout="@layout/tuner_zen_mode_panel" />
John Spurlockf88d8082015-03-25 18:09:51 -040049 </LinearLayout>
50
Julia Reynoldsc791e052016-02-19 16:02:01 -050051 <com.android.keyguard.AlphaOptimizedImageButton
52 xmlns:android="http://schemas.android.com/apk/res/android"
53 xmlns:tools="http://schemas.android.com/tools"
54 android:id="@+id/volume_expand_button"
55 style="@style/VolumeButtons"
56 android:layout_width="@dimen/volume_button_size"
57 android:layout_height="@dimen/volume_button_size"
58 android:clickable="true"
59 android:soundEffectsEnabled="false"
60 android:src="@drawable/ic_volume_collapse_animation"
Julia Reynoldsbda51652016-07-12 11:30:28 -040061 android:background="@drawable/ripple_drawable"
Julia Reynoldsc791e052016-02-19 16:02:01 -050062 tools:ignore="RtlHardcoded"
63 android:layout_alignParentEnd="true"
Julia Reynolds5f83c852016-06-15 12:53:31 -040064 android:layout_alignParentTop="true"
65 android:layout_marginTop="@dimen/volume_expander_margin_top"
66 android:layout_marginEnd="@dimen/volume_expander_margin_end"/>
Julia Reynoldsc791e052016-02-19 16:02:01 -050067
Jason Monke138f552016-01-18 09:21:45 -050068</RelativeLayout>