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