1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2020 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<com.google.android.setupdesign.GlifLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent" 23 android:icon="@drawable/ic_scan_32dp" 24 app:sudDescriptionText="@string/adb_wireless_qrcode_pairing_description"> 25 26 <LinearLayout 27 style="@style/SudContentFrame" 28 android:layout_width="match_parent" 29 android:layout_height="match_parent" 30 android:orientation="vertical" 31 android:gravity="center_horizontal"> 32 33 <LinearLayout 34 android:layout_width="match_parent" 35 android:layout_height="match_parent" 36 android:gravity="center" 37 android:orientation="vertical" 38 android:id="@+id/camera_layout"> 39 40 <FrameLayout 41 android:layout_width="wrap_content" 42 android:layout_height="wrap_content" 43 android:clipChildren="true"> 44 <TextureView 45 android:id="@+id/preview_view" 46 android:layout_width="match_parent" 47 android:layout_height="@dimen/qrcode_preview_size"/> 48 <com.android.settings.wifi.qrcode.QrDecorateView 49 android:id="@+id/decorate_view" 50 android:layout_width="match_parent" 51 android:layout_height="@dimen/qrcode_preview_size"/> 52 </FrameLayout> 53 54 <TextView 55 android:id="@+id/error_message" 56 style="@style/TextAppearance.ErrorText" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_marginTop="16dp" 60 android:layout_marginStart="?attr/sudMarginStart" 61 android:layout_marginEnd="?attr/sudMarginEnd" 62 android:textAlignment="center" 63 android:visibility="invisible"/> 64 65 </LinearLayout> 66 67 <!-- 68 The spinner indicating that the device is waiting for pairing 69 after getting valid QR code 70 --> 71 <LinearLayout 72 android:id="@+id/verifying_layout" 73 android:layout_width="match_parent" 74 android:layout_height="match_parent" 75 android:gravity="center" 76 android:orientation="vertical" 77 android:visibility="gone"> 78 79 <ProgressBar 80 android:id="@+id/verifying_progress" 81 android:layout_width="wrap_content" 82 android:layout_height="wrap_content"/> 83 84 <TextView 85 android:id="@+id/verifying_textview" 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 style="@style/adb_wireless_item_progress_text" 89 android:text="@string/adb_wireless_verifying_qrcode_text" 90 android:accessibilityLiveRegion="polite"/> 91 92 </LinearLayout> 93 94 </LinearLayout> 95 96</com.google.android.setupdesign.GlifLayout> 97