John Spurlock | 7f1df5e | 2014-05-31 19:11:40 -0400 | [diff] [blame] | 1 | <!-- |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 2 | Copyright (C) 2015 The Android Open Source Project |
John Spurlock | 7f1df5e | 2014-05-31 19:11:40 -0400 | [diff] [blame] | 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 | --> |
Julia Reynolds | c791e05 | 2016-02-19 16:02:01 -0500 | [diff] [blame] | 16 | <RelativeLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 18 | android:id="@+id/volume_dialog" |
Jason Monk | 6b23880 | 2017-06-13 14:03:45 -0400 | [diff] [blame] | 19 | android:layout_width="match_parent" |
John Spurlock | 7f1df5e | 2014-05-31 19:11:40 -0400 | [diff] [blame] | 20 | android:layout_height="wrap_content" |
John Spurlock | 22def3d | 2015-06-17 11:56:12 -0400 | [diff] [blame] | 21 | android:layout_marginBottom="@dimen/volume_dialog_margin_bottom" |
Jason Monk | 6b23880 | 2017-06-13 14:03:45 -0400 | [diff] [blame] | 22 | android:background="@drawable/volume_dialog_background" |
Julia Reynolds | 027c749 | 2017-02-15 15:41:14 -0500 | [diff] [blame] | 23 | android:paddingTop="@dimen/volume_dialog_padding_top" |
Lucas Dupin | 448786c | 2017-07-24 17:44:25 -0700 | [diff] [blame] | 24 | android:theme="@style/qs_theme" |
Jason Monk | 6b23880 | 2017-06-13 14:03:45 -0400 | [diff] [blame] | 25 | android:translationZ="4dp" > |
John Spurlock | 7f1df5e | 2014-05-31 19:11:40 -0400 | [diff] [blame] | 26 | |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 27 | <LinearLayout |
| 28 | android:id="@+id/volume_dialog_content" |
| 29 | android:layout_width="match_parent" |
| 30 | android:layout_height="wrap_content" |
Julia Reynolds | 568585b | 2016-07-25 08:55:15 -0400 | [diff] [blame] | 31 | android:orientation="vertical" > |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 32 | |
Julia Reynolds | 568585b | 2016-07-25 08:55:15 -0400 | [diff] [blame] | 33 | <LinearLayout |
Julia Reynolds | 027c749 | 2017-02-15 15:41:14 -0500 | [diff] [blame] | 34 | android:id="@+id/volume_dialog_rows" |
| 35 | android:layout_width="match_parent" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:paddingEnd="@dimen/volume_button_size" |
| 38 | android:orientation="vertical" > |
Julia Reynolds | 568585b | 2016-07-25 08:55:15 -0400 | [diff] [blame] | 39 | <!-- volume rows added and removed here! :-) --> |
| 40 | </LinearLayout> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 41 | |
John Spurlock | d9c75db | 2015-04-28 11:19:13 -0400 | [diff] [blame] | 42 | <include layout="@layout/volume_zen_footer" /> |
Jason Monk | e138f55 | 2016-01-18 09:21:45 -0500 | [diff] [blame] | 43 | |
| 44 | <!-- Only shown from Tuner setting --> |
Jason Monk | aa911b3 | 2016-02-10 21:01:30 -0500 | [diff] [blame] | 45 | <include layout="@layout/tuner_zen_mode_panel" /> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 46 | </LinearLayout> |
| 47 | |
Julia Reynolds | 027c749 | 2017-02-15 15:41:14 -0500 | [diff] [blame] | 48 | <LinearLayout |
| 49 | android:id="@+id/volume_dialog_content" |
| 50 | android:layout_width="wrap_content" |
| 51 | android:layout_height="wrap_content" |
| 52 | android:orientation="vertical" |
| 53 | android:layout_alignParentEnd="true" |
| 54 | android:layout_alignParentTop="true" |
| 55 | android:layout_marginEnd="@dimen/volume_expander_margin_end" > |
| 56 | <TextView |
| 57 | android:layout_width="wrap_content" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:ellipsize="end" |
| 60 | android:maxLines="1" |
| 61 | android:textAppearance="@style/TextAppearance.Volume.Header" /> |
| 62 | <com.android.keyguard.AlphaOptimizedImageButton |
Julia Reynolds | c791e05 | 2016-02-19 16:02:01 -0500 | [diff] [blame] | 63 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 64 | xmlns:tools="http://schemas.android.com/tools" |
| 65 | android:id="@+id/volume_expand_button" |
| 66 | style="@style/VolumeButtons" |
| 67 | android:layout_width="@dimen/volume_button_size" |
| 68 | android:layout_height="@dimen/volume_button_size" |
| 69 | android:clickable="true" |
| 70 | android:soundEffectsEnabled="false" |
| 71 | android:src="@drawable/ic_volume_collapse_animation" |
Julia Reynolds | bda5165 | 2016-07-12 11:30:28 -0400 | [diff] [blame] | 72 | android:background="@drawable/ripple_drawable" |
Julia Reynolds | c791e05 | 2016-02-19 16:02:01 -0500 | [diff] [blame] | 73 | tools:ignore="RtlHardcoded" |
Julia Reynolds | 027c749 | 2017-02-15 15:41:14 -0500 | [diff] [blame] | 74 | /> |
Julia Reynolds | c791e05 | 2016-02-19 16:02:01 -0500 | [diff] [blame] | 75 | |
Julia Reynolds | 027c749 | 2017-02-15 15:41:14 -0500 | [diff] [blame] | 76 | </LinearLayout> |
Jason Monk | e138f55 | 2016-01-18 09:21:45 -0500 | [diff] [blame] | 77 | </RelativeLayout> |