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 | --> |
Adrian Roos | edfab3b | 2018-03-08 18:39:20 +0100 | [diff] [blame] | 16 | <FrameLayout |
Julia Reynolds | c791e05 | 2016-02-19 16:02:01 -0500 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Julia Reynolds | 30dd125 | 2018-02-09 15:40:20 -0500 | [diff] [blame] | 18 | android:layout_width="wrap_content" |
| 19 | android:layout_height="wrap_content" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 20 | android:padding="@dimen/volume_dialog_panel_transparent_padding" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 21 | android:background="@android:color/transparent" |
Lucas Dupin | 448786c | 2017-07-24 17:44:25 -0700 | [diff] [blame] | 22 | android:theme="@style/qs_theme" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 23 | android:clipChildren="false" |
| 24 | android:clipToPadding="false"> |
Julia Reynolds | 7c62c31 | 2018-02-01 17:29:33 -0500 | [diff] [blame] | 25 | <!-- right-aligned to be physically near volume button --> |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 26 | <LinearLayout |
Julia Reynolds | 4241192 | 2017-11-08 11:19:09 -0500 | [diff] [blame] | 27 | android:id="@+id/volume_dialog" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 28 | android:minWidth="@dimen/volume_dialog_panel_width" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 29 | android:layout_width="wrap_content" |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 30 | android:layout_height="wrap_content" |
Julia Reynolds | 7c62c31 | 2018-02-01 17:29:33 -0500 | [diff] [blame] | 31 | android:layout_gravity="center_vertical|right" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 32 | android:background="@android:color/transparent" |
Julia Reynolds | 7c62c31 | 2018-02-01 17:29:33 -0500 | [diff] [blame] | 33 | android:layout_margin="@dimen/volume_dialog_base_margin" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 34 | android:orientation="vertical" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 35 | android:clipChildren="false" |
| 36 | android:clipToPadding="false" > |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 37 | |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 38 | <FrameLayout |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 39 | android:id="@+id/ringer" |
| 40 | android:layout_width="@dimen/volume_dialog_ringer_size" |
| 41 | android:layout_height="@dimen/volume_dialog_ringer_size" |
| 42 | android:layout_marginBottom="@dimen/volume_dialog_spacer" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 43 | android:translationZ="@dimen/volume_dialog_elevation" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 44 | android:layout_gravity="right" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 45 | android:clipChildren="false" |
| 46 | android:clipToPadding="false" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 47 | android:background="@drawable/rounded_bg_full"> |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 48 | <com.android.keyguard.AlphaOptimizedImageButton |
| 49 | android:id="@+id/ringer_icon" |
| 50 | style="@style/VolumeButtons" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 51 | android:background="@drawable/rounded_ripple" |
| 52 | android:layout_width="match_parent" |
| 53 | android:layout_height="match_parent" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 54 | android:tint="@color/accent_tint_color_selector" |
| 55 | android:layout_gravity="center" |
| 56 | android:soundEffectsEnabled="false" /> |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 57 | |
| 58 | <include layout="@layout/volume_dnd_icon"/> |
| 59 | </FrameLayout> |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 60 | |
| 61 | <LinearLayout |
| 62 | android:id="@+id/main" |
| 63 | android:layout_width="wrap_content" |
| 64 | android:minWidth="@dimen/volume_dialog_panel_width" |
| 65 | android:layout_height="wrap_content" |
| 66 | android:orientation="vertical" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 67 | android:translationZ="@dimen/volume_dialog_elevation" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 68 | android:clipChildren="false" |
| 69 | android:clipToPadding="false" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 70 | android:background="@drawable/rounded_bg_full" > |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 71 | <LinearLayout |
| 72 | android:id="@+id/volume_dialog_rows" |
| 73 | android:layout_width="wrap_content" |
| 74 | android:layout_height="wrap_content" |
| 75 | android:minWidth="@dimen/volume_dialog_panel_width" |
| 76 | android:gravity="center" |
| 77 | android:orientation="horizontal" > |
| 78 | <!-- volume rows added and removed here! :-) --> |
| 79 | </LinearLayout> |
| 80 | <FrameLayout |
Julia Reynolds | a438675 | 2018-03-12 14:07:04 -0400 | [diff] [blame] | 81 | android:id="@+id/settings_container" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 82 | android:layout_width="match_parent" |
Julia Reynolds | a438675 | 2018-03-12 14:07:04 -0400 | [diff] [blame] | 83 | android:layout_height="wrap_content" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 84 | android:background="@drawable/rounded_bg_bottom_background"> |
| 85 | <com.android.keyguard.AlphaOptimizedImageButton |
| 86 | android:id="@+id/settings" |
Julia Reynolds | a438675 | 2018-03-12 14:07:04 -0400 | [diff] [blame] | 87 | android:src="@drawable/ic_settings_16dp" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 88 | android:layout_width="@dimen/volume_dialog_tap_target_size" |
| 89 | android:layout_height="@dimen/volume_dialog_tap_target_size" |
| 90 | android:layout_gravity="center" |
Julia Reynolds | a438675 | 2018-03-12 14:07:04 -0400 | [diff] [blame] | 91 | android:contentDescription="@string/accessibility_volume_settings" |
Julia Reynolds | ac55e01 | 2018-03-27 11:17:30 -0400 | [diff] [blame] | 92 | android:background="@drawable/ripple_drawable_20dp" |
Julia Reynolds | a438675 | 2018-03-12 14:07:04 -0400 | [diff] [blame] | 93 | android:tint="?android:attr/colorControlNormal" |
Julia Reynolds | ee57193 | 2018-02-21 11:41:33 -0500 | [diff] [blame] | 94 | android:soundEffectsEnabled="false" /> |
| 95 | </FrameLayout> |
| 96 | </LinearLayout> |
| 97 | |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 98 | </LinearLayout> |
Adrian Roos | edfab3b | 2018-03-08 18:39:20 +0100 | [diff] [blame] | 99 | </FrameLayout> |