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 xmlns:androidprv="http://schemas.android.com/apk/prv/res/android" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:orientation="vertical"> 24 25 <LinearLayout 26 android:id="@+id/sud_layout_icon_container" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:layout_weight="3" 30 android:layout_marginBottom="35dp"> 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_gravity="bottom" 35 android:gravity="center" 36 android:orientation="vertical"> 37 <ImageView 38 android:id="@+id/sud_layout_icon" 39 android:src="@drawable/ic_qr_code_scanner" 40 android:tint="?androidprv:attr/colorAccentPrimaryVariant" 41 android:layout_width="@dimen/qrcode_icon_size" 42 android:layout_height="@dimen/qrcode_icon_size" 43 android:contentDescription="@null"/> 44 45 <TextView 46 android:id="@+id/sud_layout_title" 47 style="@style/QrCodeScanner" 48 android:textSize="24sp" 49 android:text="@string/bluetooth_find_broadcast_button_scan" 50 android:gravity="center" 51 android:layout_width="match_parent" 52 android:layout_height="wrap_content" 53 android:layout_marginTop="19dp"/> 54 55 <TextView 56 android:id="@+id/sud_layout_subtitle" 57 style="@style/QrCodeScanner" 58 android:text="@string/bt_le_audio_scan_qr_code_scanner" 59 android:gravity="center" 60 android:layout_width="match_parent" 61 android:layout_height="wrap_content" 62 android:layout_marginTop="8dp"/> 63 </LinearLayout> 64 </LinearLayout> 65 66 <LinearLayout 67 android:layout_width="match_parent" 68 android:layout_height="wrap_content" 69 android:layout_weight="7" 70 android:orientation="vertical"> 71 72 <FrameLayout 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 android:layout_gravity="top" 76 android:gravity="center" 77 android:clipChildren="true"> 78 <TextureView 79 android:id="@+id/preview_view" 80 android:layout_marginStart="@dimen/qrcode_preview_margin" 81 android:layout_marginEnd="@dimen/qrcode_preview_margin" 82 android:layout_width="match_parent" 83 android:layout_height="@dimen/qrcode_preview_size"/> 84 </FrameLayout> 85 86 <TextView 87 android:id="@+id/error_message" 88 style="@style/TextAppearance.ErrorText" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:layout_marginTop="16dp" 92 android:layout_marginStart="?attr/sudMarginStart" 93 android:layout_marginEnd="?attr/sudMarginEnd" 94 android:gravity="center" 95 android:layout_gravity="center" 96 android:visibility="invisible"/> 97 98 </LinearLayout> 99 100 101</LinearLayout> 102 103