| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright (C) 2020 The Android Open Source Project |
| ~ |
| ~ Licensed under the Apache License, Version 2.0 (the "License"); |
| ~ you may not use this file except in compliance with the License. |
| ~ You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, software |
| ~ distributed under the License is distributed on an "AS IS" BASIS, |
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| ~ See the License for the specific language governing permissions and |
| ~ limitations under the License. |
| --> |
| |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/media_output_dialog" |
| android:layout_width="@dimen/large_dialog_width" |
| android:layout_height="wrap_content" |
| android:orientation="vertical"> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="start|center_vertical" |
| android:paddingStart="16dp" |
| android:paddingTop="16dp" |
| android:paddingEnd="16dp" |
| android:paddingBottom="24dp" |
| android:orientation="horizontal"> |
| <ImageView |
| android:id="@+id/header_icon" |
| android:layout_width="72dp" |
| android:layout_height="72dp" |
| android:importantForAccessibility="no"/> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:paddingStart="12dp" |
| android:orientation="vertical"> |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:orientation="horizontal"> |
| <ImageView |
| android:id="@+id/app_source_icon" |
| android:layout_width="20dp" |
| android:layout_height="20dp" |
| android:gravity="center_vertical" |
| android:importantForAccessibility="no"/> |
| |
| <Space |
| android:layout_weight="1" |
| android:layout_width="0dp" |
| android:layout_height="match_parent"/> |
| |
| <ImageView |
| android:id="@+id/broadcast_icon" |
| android:src="@drawable/settings_input_antenna" |
| android:contentDescription="@string/broadcasting_description_is_broadcasting" |
| android:layout_width="48dp" |
| android:layout_height="48dp" |
| android:padding="12dp" |
| android:gravity="center_vertical" |
| android:clickable="true" |
| android:focusable="true" |
| android:visibility="gone"/> |
| </LinearLayout> |
| <TextView |
| android:id="@+id/header_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:ellipsize="end" |
| android:gravity="center_vertical" |
| android:maxLines="1" |
| android:textColor="?android:attr/textColorPrimary" |
| android:fontFamily="@*android:string/config_headlineFontFamilyMedium" |
| android:textSize="16sp"/> |
| <TextView |
| android:id="@+id/header_subtitle" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:gravity="center_vertical" |
| android:ellipsize="end" |
| android:maxLines="1" |
| android:textColor="?android:attr/textColorSecondary" |
| android:fontFamily="@*android:string/config_bodyFontFamily" |
| android:textSize="14sp"/> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <ViewStub |
| android:id="@+id/broadcast_qrcode" |
| android:layout="@layout/media_output_broadcast_area" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" > |
| </ViewStub> |
| |
| <LinearLayout |
| android:id="@+id/device_list" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <androidx.recyclerview.widget.RecyclerView |
| android:id="@+id/list_result" |
| android:scrollbars="vertical" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/cast_app_section" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="20dp" |
| android:layout_marginStart="@dimen/dialog_side_padding" |
| android:layout_marginEnd="@dimen/dialog_side_padding" |
| android:layout_marginBottom="@dimen/dialog_bottom_padding" |
| android:orientation="vertical" |
| android:visibility="gone"> |
| <TextView |
| android:id="@+id/launch_app_title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical|start" |
| android:ellipsize="end" |
| android:textColor="?android:attr/textColorPrimary" |
| android:text="@string/media_output_dialog_launch_app_text" |
| android:maxLines="1" |
| android:fontFamily="@*android:string/config_headlineFontFamilyMedium" |
| android:textSize="16sp"/> |
| |
| <Button |
| android:id="@+id/launch_app_button" |
| style="@style/Widget.Dialog.Button.BorderButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:drawablePadding="5dp"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="4dp" |
| android:layout_marginStart="@dimen/dialog_side_padding" |
| android:layout_marginEnd="@dimen/dialog_side_padding" |
| android:layout_marginBottom="@dimen/dialog_bottom_padding" |
| android:orientation="horizontal"> |
| |
| <Button |
| android:id="@+id/stop" |
| style="@style/Widget.Dialog.Button.BorderButton" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/media_output_dialog_button_stop_casting" |
| android:visibility="gone"/> |
| |
| <Space |
| android:layout_weight="1" |
| android:layout_width="0dp" |
| android:layout_height="match_parent"/> |
| |
| <Button |
| android:id="@+id/done" |
| style="@style/Widget.Dialog.Button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:text="@string/inline_done_button"/> |
| </LinearLayout> |
| </LinearLayout> |