xref: /aosp_15_r20/frameworks/base/packages/SystemUI/res/layout-land-television/volume_dialog_row.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
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-->
16<!-- TODO(b/289498394) move this to the TvSystemUI target -->
17<FrameLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:tag="row"
20    android:layout_width="wrap_content"
21    android:layout_height="@dimen/volume_dialog_panel_height"
22    android:background="@android:color/transparent"
23    android:clipChildren="false"
24    android:clipToPadding="false"
25    android:theme="@style/volume_dialog_theme">
26
27    <LinearLayout
28        android:layout_width="wrap_content"
29        android:layout_height="match_parent"
30        android:padding="@dimen/tv_volume_dialog_row_padding"
31        android:background="@android:color/transparent"
32        android:gravity="center"
33        android:layout_gravity="center"
34        android:orientation="vertical" >
35        <TextView
36            android:id="@+id/volume_number"
37            android:layout_width="@dimen/tv_volume_dialog_bubble_size"
38            android:layout_height="@dimen/tv_volume_dialog_bubble_size"
39            android:maxLength="3"
40            android:gravity="center"
41            android:fontFeatureSettings="tnum"
42            android:background="@drawable/tv_volume_dialog_circle"
43            android:textSize="@dimen/tv_volume_number_text_size"
44            android:textColor="@color/tv_volume_dialog_accent"/>
45        <TextView
46            android:id="@+id/volume_row_header"
47            android:layout_width="wrap_content"
48            android:layout_height="wrap_content"
49            android:ellipsize="end"
50            android:maxLength="10"
51            android:maxLines="1"
52            android:visibility="gone"
53            android:textColor="?android:attr/colorControlNormal"
54            android:textAppearance="@style/TextAppearance.Volume.Header" />
55        <FrameLayout
56            android:id="@+id/volume_row_slider_frame"
57            android:layout_width="match_parent"
58            android:layout_height="@dimen/volume_dialog_panel_height">
59            <SeekBar
60                android:id="@+id/volume_row_slider"
61                android:clickable="false"
62                android:layout_width="@dimen/volume_dialog_panel_height"
63                android:layout_height="match_parent"
64                android:layout_gravity="center"
65                android:layoutDirection="ltr"
66                android:maxHeight="@dimen/volume_dialog_slider_width_legacy"
67                android:minHeight="@dimen/volume_dialog_slider_width_legacy"
68                android:progressDrawable="@drawable/volume_row_seekbar"
69                android:thumb="@drawable/tv_volume_row_seek_thumb"
70                android:splitTrack="false"
71                android:rotation="270" />
72        </FrameLayout>
73        <com.android.keyguard.AlphaOptimizedImageButton
74            android:id="@+id/volume_row_icon"
75            style="@style/VolumeButtons"
76            android:layout_width="@dimen/tv_volume_dialog_bubble_size"
77            android:layout_height="@dimen/tv_volume_dialog_bubble_size"
78            android:background="@drawable/tv_volume_dialog_circle"
79            android:tint="@color/accent_tint_color_selector"
80            android:soundEffectsEnabled="false" />
81    </LinearLayout>
82</FrameLayout>
83