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 | --> |
Julia Reynolds | 5f83c85 | 2016-06-15 12:53:31 -0400 | [diff] [blame] | 16 | <LinearLayout |
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" |
Julia Reynolds | 4241192 | 2017-11-08 11:19:09 -0500 | [diff] [blame] | 23 | android:theme="@style/qs_theme" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 24 | android:gravity="center" |
Julia Reynolds | 4241192 | 2017-11-08 11:19:09 -0500 | [diff] [blame] | 25 | android:orientation="vertical" > |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 26 | |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 27 | <LinearLayout |
| 28 | android:orientation="vertical" |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 29 | android:layout_width="wrap_content" |
| 30 | android:layout_height="wrap_content" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 31 | android:gravity="center" |
| 32 | android:padding="10dp"> |
| 33 | <TextView |
| 34 | android:id="@+id/volume_row_header" |
| 35 | android:layout_width="wrap_content" |
| 36 | android:layout_height="wrap_content" |
| 37 | android:ellipsize="end" |
| 38 | android:maxLines="1" |
| 39 | android:textColor="?android:attr/colorControlNormal" |
| 40 | android:textAppearance="?android:attr/textAppearanceSmall" /> |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 41 | <LinearLayout |
| 42 | android:id="@+id/output_chooser" |
| 43 | android:orientation="vertical" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 44 | android:layout_width="wrap_content" |
| 45 | android:layout_height="wrap_content" |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 46 | android:minWidth="48dp" |
| 47 | android:minHeight="48dp" |
| 48 | android:paddingTop="10dp" |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 49 | android:background="?android:selectableItemBackgroundBorderless" |
Julia Reynolds | 6692b47 | 2018-01-24 07:23:56 -0500 | [diff] [blame] | 50 | android:gravity="center"> |
| 51 | <TextView |
| 52 | android:id="@+id/volume_row_connected_device" |
| 53 | android:visibility="gone" |
| 54 | android:layout_width="wrap_content" |
| 55 | android:layout_height="wrap_content" |
| 56 | android:ellipsize="end" |
| 57 | android:maxLines="1" |
| 58 | android:textAppearance="@style/TextAppearance.QS.DetailItemSecondary" /> |
| 59 | <com.android.keyguard.AlphaOptimizedImageButton |
| 60 | android:id="@+id/output_chooser_button" |
| 61 | android:layout_width="24dp" |
| 62 | android:layout_height="24dp" |
| 63 | android:background="?android:selectableItemBackgroundBorderless" |
| 64 | style="@style/VolumeButtons" |
| 65 | android:layout_centerVertical="true" |
| 66 | android:src="@drawable/ic_swap" |
| 67 | android:soundEffectsEnabled="false" /> |
| 68 | </LinearLayout> |
Julia Reynolds | 5f83c85 | 2016-06-15 12:53:31 -0400 | [diff] [blame] | 69 | </LinearLayout> |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 70 | <FrameLayout |
| 71 | android:id="@+id/volume_row_slider_frame" |
| 72 | android:padding="10dp" |
| 73 | android:layout_width="@dimen/volume_dialog_panel_width" |
| 74 | android:layout_height="150dp"> |
| 75 | <SeekBar |
| 76 | android:id="@+id/volume_row_slider" |
| 77 | android:padding="0dp" |
| 78 | android:layout_margin="0dp" |
| 79 | android:layout_width="150dp" |
| 80 | android:layout_height="@dimen/volume_dialog_panel_width" |
| 81 | android:layout_gravity="center" |
| 82 | android:focusable="true" |
| 83 | android:focusableInTouchMode="true" |
| 84 | android:rotation="270" /> |
| 85 | </FrameLayout> |
John Spurlock | f88d808 | 2015-03-25 18:09:51 -0400 | [diff] [blame] | 86 | |
Julia Reynolds | 0a22856 | 2018-01-10 12:53:40 -0500 | [diff] [blame] | 87 | <com.android.keyguard.AlphaOptimizedImageButton |
| 88 | android:id="@+id/volume_row_icon" |
| 89 | style="@style/VolumeButtons" |
| 90 | android:padding="10dp" |
| 91 | android:layout_width="@dimen/volume_button_size" |
| 92 | android:layout_height="@dimen/volume_button_size" |
| 93 | android:soundEffectsEnabled="false" /> |
Julia Reynolds | 4241192 | 2017-11-08 11:19:09 -0500 | [diff] [blame] | 94 | |
Julia Reynolds | 5f83c85 | 2016-06-15 12:53:31 -0400 | [diff] [blame] | 95 | </LinearLayout> |