blob: fb9355ad061b87ba722b0d837787e8c5b0b44fb1 [file] [log] [blame]
John Spurlockf88d8082015-03-25 18:09:51 -04001<!--
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-->
Beverlyda0fe822018-02-08 17:19:01 -050016<FrameLayout
Julia Reynoldsc791e052016-02-19 16:02:01 -050017 xmlns:android="http://schemas.android.com/apk/res/android"
Julia Reynolds0a228562018-01-10 12:53:40 -050018 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"
Beverlyda0fe822018-02-08 17:19:01 -050023 android:theme="@style/qs_theme">
John Spurlockf88d8082015-03-25 18:09:51 -040024
Julia Reynolds0a228562018-01-10 12:53:40 -050025 <LinearLayout
Beverlyda0fe822018-02-08 17:19:01 -050026 android:layout_height="match_parent"
27 android:layout_width="match_parent"
28 android:layout_marginTop="10dp"
29 android:layout_marginBottom="10dp"
Julia Reynolds0a228562018-01-10 12:53:40 -050030 android:gravity="center"
Beverlyda0fe822018-02-08 17:19:01 -050031 android:orientation="vertical" >
32
Julia Reynolds6692b472018-01-24 07:23:56 -050033 <LinearLayout
Julia Reynolds6692b472018-01-24 07:23:56 -050034 android:orientation="vertical"
Julia Reynolds0a228562018-01-10 12:53:40 -050035 android:layout_width="wrap_content"
36 android:layout_height="wrap_content"
Beverlyda0fe822018-02-08 17:19:01 -050037 android:gravity="center"
38 android:padding="5dp">
Julia Reynolds6692b472018-01-24 07:23:56 -050039 <TextView
Beverlyda0fe822018-02-08 17:19:01 -050040 android:id="@+id/volume_row_header"
Julia Reynolds6692b472018-01-24 07:23:56 -050041 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
43 android:ellipsize="end"
Beverlyda0fe822018-02-08 17:19:01 -050044 android:maxLength="10"
Julia Reynolds6692b472018-01-24 07:23:56 -050045 android:maxLines="1"
Beverlyda0fe822018-02-08 17:19:01 -050046 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 Reynolds6692b472018-01-24 07:23:56 -050056 android:background="?android:selectableItemBackgroundBorderless"
Beverlyda0fe822018-02-08 17:19:01 -050057 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 Reynolds6692b472018-01-24 07:23:56 -050079 </LinearLayout>
Beverlyda0fe822018-02-08 17:19:01 -050080 <FrameLayout
81 android:id="@+id/volume_row_slider_frame"
Julia Reynolds0a228562018-01-10 12:53:40 -050082 android:padding="0dp"
Julia Reynolds7c62c312018-02-01 17:29:33 -050083 android:layout_width="@dimen/volume_dialog_panel_width"
Julia Reynolds089ec642018-02-01 16:22:16 -050084 android:layoutDirection="rtl"
Beverlyda0fe822018-02-08 17:19:01 -050085 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 Spurlockf88d8082015-03-25 18:09:51 -040097
Beverlyda0fe822018-02-08 17:19:01 -050098 <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 Reynolds42411922017-11-08 11:19:09 -0500107
Beverlyda0fe822018-02-08 17:19:01 -0500108 <include layout="@layout/volume_dnd_icon"/>
109
110</FrameLayout>