• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/media_output_dialog"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:orientation="vertical">
24
25    <LinearLayout
26        android:layout_width="match_parent"
27        android:layout_height="94dp"
28        android:gravity="start|center_vertical"
29        android:paddingStart="16dp"
30        android:orientation="horizontal">
31        <ImageView
32            android:id="@+id/header_icon"
33            android:layout_width="wrap_content"
34            android:layout_height="wrap_content"
35            android:paddingEnd="@dimen/media_output_dialog_header_icon_padding"/>
36
37        <LinearLayout
38            android:layout_width="match_parent"
39            android:layout_height="wrap_content"
40            android:layout_marginEnd="16dp"
41            android:orientation="vertical">
42            <TextView
43                android:id="@+id/header_title"
44                android:layout_width="wrap_content"
45                android:layout_height="wrap_content"
46                android:ellipsize="end"
47                android:maxLines="1"
48                android:textColor="?android:attr/textColorPrimary"
49                android:fontFamily="@*android:string/config_headlineFontFamilyMedium"
50                android:textSize="20sp"/>
51
52            <TextView
53                android:id="@+id/header_subtitle"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:ellipsize="end"
57                android:maxLines="1"
58                android:fontFamily="roboto-regular"
59                android:textSize="14sp"/>
60
61        </LinearLayout>
62    </LinearLayout>
63
64    <View
65        android:layout_width="match_parent"
66        android:layout_height="1dp"
67        android:background="?android:attr/listDivider"/>
68
69    <LinearLayout
70        android:id="@+id/device_list"
71        android:layout_width="match_parent"
72        android:layout_height="wrap_content"
73        android:orientation="vertical">
74
75        <androidx.recyclerview.widget.RecyclerView
76            android:id="@+id/list_result"
77            android:scrollbars="vertical"
78            android:layout_width="match_parent"
79            android:layout_height="wrap_content"
80            android:overScrollMode="never"/>
81    </LinearLayout>
82
83    <View
84        android:layout_width="match_parent"
85        android:layout_height="1dp"
86        android:background="?android:attr/listDivider"/>
87
88    <LinearLayout
89        android:layout_width="match_parent"
90        android:layout_height="wrap_content"
91        android:orientation="horizontal">
92
93        <Button
94            android:id="@+id/stop"
95            style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
96            android:layout_width="wrap_content"
97            android:layout_height="64dp"
98            android:text="@string/keyboard_key_media_stop"
99            android:visibility="gone"/>
100
101        <Space
102            android:layout_weight="1"
103            android:layout_width="0dp"
104            android:layout_height="match_parent"/>
105
106        <Button
107            android:id="@+id/done"
108            style="@*android:style/Widget.DeviceDefault.Button.Borderless.Colored"
109            android:layout_width="wrap_content"
110            android:layout_height="64dp"
111            android:layout_marginEnd="0dp"
112            android:text="@string/inline_done_button"/>
113    </LinearLayout>
114</LinearLayout>