John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 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 | --> |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [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 | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 18 | android:tag="row" |
| 19 | android:layout_height="wrap_content" |
| 20 | android:layout_width="@dimen/volume_dialog_panel_width" |
| 21 | android:clipChildren="true" |
| 22 | android:clipToPadding="true" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 23 | android:theme="@style/qs_theme"> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 24 | |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 25 | <LinearLayout |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 26 | android:layout_height="match_parent" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_marginTop="10dp" |
| 29 | android:layout_marginBottom="10dp" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 30 | android:gravity="center" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 31 | android:orientation="vertical" > |
| 32 | |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 33 | <LinearLayout |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 34 | android:orientation="vertical" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 37 | android:gravity="center" |
| 38 | android:padding="5dp"> |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 39 | <TextView |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 40 | android:id="@+id/volume_row_header" |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 41 | android:layout_width="wrap_content" |
| 42 | android:layout_height="wrap_content" |
| 43 | android:ellipsize="end" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 44 | android:maxLength="10" |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 45 | android:maxLines="1" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 46 | android:textColor="?android:attr/colorControlNormal" |
| 47 | android:textAppearance="@style/TextAppearance.Volume.Header" /> |
| 48 | <LinearLayout |
| 49 | android:id="@+id/output_chooser" |
| 50 | android:orientation="vertical" |
| 51 | android:layout_width="wrap_content" |
| 52 | android:layout_height="wrap_content" |
| 53 | android:minWidth="48dp" |
| 54 | android:minHeight="48dp" |
| 55 | android:paddingTop="10dp" |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 56 | android:background="?android:selectableItemBackgroundBorderless" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 57 | android:gravity="center"> |
| 58 | <TextView |
| 59 | android:id="@+id/volume_row_connected_device" |
| 60 | android:visibility="gone" |
| 61 | android:layout_width="wrap_content" |
| 62 | android:layout_height="wrap_content" |
| 63 | android:maxLength="10" |
| 64 | android:ellipsize="end" |
| 65 | android:maxLines="1" |
| 66 | android:textAppearance="@style/TextAppearance.Volume.Header.Secondary" /> |
| 67 | <com.android.keyguard.AlphaOptimizedImageButton |
| 68 | android:id="@+id/output_chooser_button" |
| 69 | android:layout_width="24dp" |
| 70 | android:layout_height="24dp" |
| 71 | android:background="?android:selectableItemBackgroundBorderless" |
| 72 | android:contentDescription="@string/accessibility_output_chooser" |
| 73 | style="@style/VolumeButtons" |
| 74 | android:clickable="false" |
| 75 | android:layout_centerVertical="true" |
| 76 | android:src="@drawable/ic_swap" |
| 77 | android:soundEffectsEnabled="false"/> |
| 78 | </LinearLayout> |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 79 | </LinearLayout> |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 80 | <FrameLayout |
| 81 | android:id="@+id/volume_row_slider_frame" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 82 | android:padding="0dp" |
Julia Reynolds | 7c62c31 | 2018-02-01 17:29:33 -0500 | [diff] [blame] | 83 | android:layout_width="@dimen/volume_dialog_panel_width" |
Julia Reynolds | 089ec64 | 2018-02-01 16:22:16 -0500 | [diff] [blame] | 84 | android:layoutDirection="rtl" |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 85 | android:layout_height="@dimen/volume_dialog_panel_width"> |
| 86 | <SeekBar |
| 87 | android:id="@+id/volume_row_slider" |
| 88 | android:clickable="true" |
| 89 | android:padding="0dp" |
| 90 | android:layout_margin="0dp" |
| 91 | android:layout_width="@dimen/volume_dialog_panel_width" |
| 92 | android:layout_height="@dimen/volume_dialog_panel_width" |
| 93 | android:layoutDirection="rtl" |
| 94 | android:layout_gravity="center" |
| 95 | android:rotation="90" /> |
| 96 | </FrameLayout> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 97 | |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 98 | <com.android.keyguard.AlphaOptimizedImageButton |
| 99 | android:id="@+id/volume_row_icon" |
| 100 | style="@style/VolumeButtons" |
| 101 | android:padding="10dp" |
| 102 | android:layout_width="@dimen/volume_button_size" |
| 103 | android:layout_height="@dimen/volume_button_size" |
| 104 | android:background="?android:selectableItemBackgroundBorderless" |
| 105 | android:soundEffectsEnabled="false" /> |
| 106 | </LinearLayout> |
Julia Reynolds | 4241192 | 2017-11-08 11:19:09 -0500 | [diff] [blame] | 107 | |
Beverly | da0fe82 | 2018-02-08 17:19:01 -0500 | [diff] [blame] | 108 | <include layout="@layout/volume_dnd_icon"/> |
| 109 | |
| 110 | </FrameLayout> |