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:gravity="center" 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:ellipsize="marquee" 45 android:textDirection="locale"/> 46 47 <Button 48 android:id="@+id/button_find_broadcast" 49 android:layout_width="@dimen/bluetooth_find_broadcast_button_one_size" 50 android:layout_height="wrap_content" 51 android:text="@string/bluetooth_find_broadcast" 52 android:clickable="true" 53 style="@style/BroadcastActionButton" /> 54 55 <LinearLayout 56 android:id="@+id/button_broadcast_layout" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:gravity="center" 60 android:orientation="horizontal" > 61 62 <LinearLayout 63 android:layout_width="wrap_content" 64 android:layout_height="wrap_content"> 65 <Button 66 android:id="@+id/button_leave_broadcast" 67 android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" 68 android:layout_height="wrap_content" 69 android:layout_weight="1" 70 android:text="@string/bluetooth_find_broadcast_button_leave" 71 android:clickable="true" 72 style="@style/BroadcastActionButton" /> 73 </LinearLayout> 74 75 <LinearLayout 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:layout_marginStart="@dimen/bluetooth_find_broadcast_button_start_margin"> 79 <Button 80 android:id="@+id/button_scan_qr_code" 81 android:layout_width="@dimen/bluetooth_find_broadcast_button_two_size" 82 android:layout_height="wrap_content" 83 android:layout_weight="1" 84 android:text="@string/bluetooth_find_broadcast_button_scan" 85 android:clickable="true" 86 style="@style/BroadcastActionButton" /> 87 </LinearLayout> 88 89 </LinearLayout> 90 91 <android.widget.ProgressBar 92 android:id="@+id/progressBar" 93 style="?android:attr/progressBarStyleHorizontal" 94 android:layout_width="@dimen/bluetooth_find_broadcast_progress_width" 95 android:layout_height="@dimen/bluetooth_find_broadcast_progress_height" 96 android:layout_marginTop="@dimen/bluetooth_find_broadcast_progress_margin_top" 97 android:progressDrawable="@drawable/color_bar_progress"/> 98</LinearLayout> 99