1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/device_container"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:orientation="vertical">
24    <FrameLayout
25        android:layout_width="match_parent"
26        android:layout_height="64dp"
27        android:layout_marginStart="16dp"
28        android:layout_marginEnd="16dp"
29        android:layout_marginBottom="12dp">
30        <FrameLayout
31            android:id="@+id/item_layout"
32            android:layout_width="match_parent"
33            android:layout_height="match_parent"
34            android:background="@drawable/media_output_item_background"
35            android:layout_gravity="center_vertical|start">
36            <com.android.systemui.media.dialog.MediaOutputSeekbar
37                android:id="@+id/volume_seekbar"
38                android:splitTrack="false"
39                android:visibility="gone"
40                android:paddingStart="0dp"
41                android:paddingEnd="0dp"
42                android:background="@null"
43                android:contentDescription="@string/media_output_dialog_accessibility_seekbar"
44                android:progressDrawable="@drawable/media_output_dialog_seekbar_background"
45                android:thumb="@null"
46                android:layout_width="match_parent"
47                android:layout_height="match_parent"/>
48        </FrameLayout>
49
50        <FrameLayout
51            android:layout_width="56dp"
52            android:layout_height="64dp"
53            android:layout_gravity="center_vertical|start">
54            <ImageView
55                android:id="@+id/title_icon"
56                android:layout_width="24dp"
57                android:layout_height="24dp"
58                android:layout_gravity="center"/>
59        </FrameLayout>
60
61        <TextView
62            android:id="@+id/title"
63            android:layout_width="wrap_content"
64            android:layout_height="wrap_content"
65            android:layout_gravity="center_vertical|start"
66            android:layout_marginStart="56dp"
67            android:layout_marginEnd="56dp"
68            android:ellipsize="end"
69            android:maxLines="1"
70            android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
71            android:textSize="16sp"/>
72
73        <LinearLayout
74            android:id="@+id/two_line_layout"
75            android:orientation="vertical"
76            android:layout_width="wrap_content"
77            android:layout_gravity="center_vertical|start"
78            android:layout_height="48dp"
79            android:layout_marginEnd="56dp"
80            android:layout_marginStart="56dp">
81            <TextView
82                android:id="@+id/two_line_title"
83                android:layout_width="wrap_content"
84                android:layout_height="wrap_content"
85                android:ellipsize="end"
86                android:maxLines="1"
87                android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
88                android:textColor="@color/media_dialog_item_main_content"
89                android:textSize="16sp"/>
90            <TextView
91                android:id="@+id/subtitle"
92                android:layout_width="wrap_content"
93                android:layout_height="wrap_content"
94                android:ellipsize="end"
95                android:maxLines="1"
96                android:textColor="@color/media_dialog_item_main_content"
97                android:textSize="14sp"
98                android:fontFamily="@*android:string/config_bodyFontFamily"
99                android:visibility="gone"/>
100        </LinearLayout>
101
102        <ProgressBar
103            android:id="@+id/volume_indeterminate_progress"
104            style="?android:attr/progressBarStyleSmallTitle"
105            android:layout_width="24dp"
106            android:layout_height="24dp"
107            android:layout_marginEnd="16dp"
108            android:indeterminate="true"
109            android:layout_gravity="end|center"
110            android:indeterminateOnly="true"
111            android:visibility="gone"/>
112
113        <ImageView
114            android:id="@+id/media_output_item_status"
115            android:layout_width="24dp"
116            android:layout_height="24dp"
117            android:layout_marginEnd="16dp"
118            android:indeterminate="true"
119            android:layout_gravity="end|center"
120            android:indeterminateOnly="true"
121            android:importantForAccessibility="no"
122            android:visibility="gone"/>
123
124        <LinearLayout
125            android:id="@+id/end_action_area"
126            android:visibility="gone"
127            android:orientation="vertical"
128            android:layout_width="48dp"
129            android:layout_height="64dp"
130            android:layout_gravity="end|center"
131            android:gravity="center_vertical">
132            <CheckBox
133                android:id="@+id/check_box"
134                android:focusable="false"
135                android:importantForAccessibility="no"
136                android:layout_width="24dp"
137                android:layout_height="24dp"
138                android:layout_marginEnd="16dp"
139                android:layout_gravity="end"
140                android:button="@drawable/ic_circle_check_box"
141                android:visibility="gone"
142            />
143
144        </LinearLayout>
145    </FrameLayout>
146</LinearLayout>