1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<LinearLayout 18 xmlns:android="http://schemas.android.com/apk/res/android" 19 android:id="@+id/broadcast_info_area" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 android:gravity="start|center_vertical" 23 android:orientation="vertical"> 24 25 <View 26 style="@style/BroadcastDialog.Divider.Horizontal" 27 android:layout_marginBottom="6dp"/> 28 29 <LinearLayout 30 android:id="@+id/broadcast_qrcode_layout" 31 android:layout_width="match_parent" 32 android:layout_height="wrap_content" 33 android:orientation="horizontal" > 34 <ImageView 35 android:id="@+id/qrcode_view" 36 android:layout_width="@dimen/media_output_qrcode_size" 37 android:layout_height="@dimen/media_output_qrcode_size" 38 android:src="@android:color/transparent" 39 android:gravity="start|center_vertical" 40 android:layout_marginStart="82dp"/> 41 <ImageView 42 android:id="@+id/broadcast_info" 43 android:layout_width="@dimen/media_output_broadcast_info" 44 android:layout_height="@dimen/media_output_broadcast_info" 45 android:src="@drawable/ic_info_outline" 46 android:tint="?android:attr/textColorTertiary" 47 android:clickable="true" 48 android:layout_marginTop="168dp" 49 android:layout_marginStart="31dp"/> 50 </LinearLayout> 51 52 <LinearLayout 53 android:id="@+id/broadcast_name_layout" 54 android:layout_width="wrap_content" 55 android:layout_height="wrap_content" 56 android:paddingStart="@dimen/media_output_broadcast_info_item_padding_start" 57 android:paddingEnd="@dimen/media_output_broadcast_info_item_padding_end" 58 android:orientation="horizontal"> 59 <LinearLayout 60 android:layout_width="0dp" 61 android:layout_weight="1" 62 android:orientation="vertical" 63 style="@style/BroadcastDialog.InfoItem" > 64 <TextView 65 android:id="@+id/broadcast_name_title" 66 android:text="@string/media_output_broadcast_name" 67 style="@style/BroadcastDialog.InfoItem.Title" /> 68 <TextView 69 android:id="@+id/broadcast_name_summary" 70 style="@style/BroadcastDialog.InfoItem.Summary" /> 71 </LinearLayout> 72 73 <View 74 style="@style/BroadcastDialog.Divider.Vertical" /> 75 76 <FrameLayout 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_gravity="end|center_vertical"> 80 <ImageView 81 android:id="@+id/broadcast_name_edit" 82 style="@style/BroadcastDialog.InfoItem.Edit" /> 83 </FrameLayout> 84 </LinearLayout> 85 86 <LinearLayout 87 android:id="@+id/broadcast_code_layout" 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:paddingStart="@dimen/media_output_broadcast_info_item_padding_start" 91 android:paddingEnd="@dimen/media_output_broadcast_info_item_padding_end" 92 android:orientation="horizontal" > 93 <LinearLayout 94 android:layout_width="0dp" 95 android:layout_weight="1" 96 android:orientation="vertical" 97 style="@style/BroadcastDialog.InfoItem" > 98 <TextView 99 android:id="@+id/broadcast_code_title" 100 android:text="@string/media_output_broadcast_code" 101 style="@style/BroadcastDialog.InfoItem.Title" /> 102 <TextView 103 android:id="@+id/broadcast_code_summary" 104 style="@style/BroadcastDialog.InfoItem.Summary" /> 105 </LinearLayout> 106 107 <FrameLayout 108 android:layout_width="wrap_content" 109 android:layout_height="wrap_content" 110 android:layout_gravity="end|center_vertical" 111 android:layout_marginEnd="26dp"> 112 <ImageView 113 android:id="@+id/broadcast_code_eye" 114 android:layout_width="20dp" 115 android:layout_height="16dp" 116 android:background="?android:attr/selectableItemBackground" 117 android:clickable="true" 118 android:focusable="true" 119 android:src="@drawable/ic_broadcast_code_eye" 120 android:tint="?android:attr/textColorPrimary"/> 121 </FrameLayout> 122 123 <View 124 style="@style/BroadcastDialog.Divider.Vertical" /> 125 126 <FrameLayout 127 android:layout_width="wrap_content" 128 android:layout_height="wrap_content" 129 android:layout_gravity="end|center_vertical"> 130 <ImageView 131 android:id="@+id/broadcast_code_edit" 132 style="@style/BroadcastDialog.InfoItem.Edit" /> 133 </FrameLayout> 134 </LinearLayout> 135 136 <View 137 style="@style/BroadcastDialog.Divider.Horizontal" 138 android:layout_marginTop="14dp" 139 android:layout_marginBottom="20dp"/> 140</LinearLayout>