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 18<LinearLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 android:id="@+id/entity_header" 21 style="@style/EntityHeader" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" 24 android:gravity="center" 25 android:paddingStart="?android:attr/listPreferredItemPaddingStart" 26 android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" 27 android:orientation="vertical"> 28 29 <TextView 30 android:id="@+id/entity_header_title" 31 style="@style/TextAppearance.EntityHeaderTitle" 32 android:layout_width="wrap_content" 33 android:layout_height="wrap_content" 34 android:singleLine="false" 35 android:ellipsize="marquee" 36 android:textDirection="locale"/> 37 38 <TextView 39 android:id="@+id/entity_header_summary" 40 style="@style/TextAppearance.EntityHeaderSummary" 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:layout_marginTop="@dimen/bluetooth_find_broadcast_header_top_margin" 44 android:singleLine="false" 45 android:ellipsize="marquee" 46 android:textDirection="locale"/> 47 48 <Button 49 android:id="@+id/button_find_broadcast" 50 android:layout_width="@dimen/bluetooth_find_broadcast_button_one_size" 51 android:layout_height="wrap_content" 52 android:text="@string/bluetooth_find_broadcast" 53 android:clickable="true" 54 style="@style/BroadcastActionButton" /> 55 56 <LinearLayout 57 android:id="@+id/button_broadcast_layout" 58 android:layout_width="wrap_content" 59 android:layout_height="wrap_content" 60 android:gravity="center" 61 android:orientation="horizontal" > 62 63 <LinearLayout 64 android:layout_width="wrap_content" 65 android:layout_height="wrap_content"> 66 <Button 67 android:id="@+id/button_leave_broadcast" 68 android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" 69 android:layout_height="wrap_content" 70 android:layout_weight="1" 71 android:text="@string/bluetooth_find_broadcast_button_leave" 72 android:clickable="true" 73 style="@style/BroadcastActionButton" /> 74 </LinearLayout> 75 76 <LinearLayout 77 android:layout_width="wrap_content" 78 android:layout_height="wrap_content" 79 android:layout_marginStart="@dimen/bluetooth_find_broadcast_button_start_margin"> 80 <Button 81 android:id="@+id/button_scan_qr_code" 82 android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" 83 android:layout_height="wrap_content" 84 android:layout_weight="1" 85 android:text="@string/bluetooth_find_broadcast_button_scan" 86 android:clickable="true" 87 style="@style/BroadcastActionButton" /> 88 </LinearLayout> 89 90 </LinearLayout> 91 92 <android.widget.ProgressBar 93 android:id="@+id/progressBar" 94 style="?android:attr/progressBarStyleHorizontal" 95 android:layout_width="@dimen/bluetooth_find_broadcast_progress_width" 96 android:layout_height="@dimen/bluetooth_find_broadcast_progress_height" 97 android:layout_marginTop="@dimen/bluetooth_find_broadcast_progress_margin_top" 98 android:progressDrawable="@drawable/color_bar_progress"/> 99</LinearLayout> 100