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<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    android:id="@+id/root"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent">
23
24    <ScrollView
25        android:layout_width="match_parent"
26        android:layout_height="match_parent"
27        android:id="@+id/camera_layout">
28        <LinearLayout
29            android:layout_width="match_parent"
30            android:layout_height="match_parent"
31            android:orientation="vertical"
32            android:gravity="center_horizontal">
33
34            <include layout="@layout/wifi_dpp_fragment_header"/>
35
36            <ProgressBar
37                android:id="@+id/indeterminate_bar"
38                android:layout_width="match_parent"
39                android:layout_height="wrap_content"
40                android:indeterminate="true"
41                android:paddingStart="16dp"
42                android:paddingEnd="16dp"
43                android:layout_marginBottom="8dp"
44                style="?android:attr/progressBarStyleHorizontal"/>
45            <FrameLayout
46                android:layout_width="wrap_content"
47                android:layout_height="wrap_content"
48                android:clipChildren="true">
49                <TextureView
50                    android:id="@+id/preview_view"
51                    android:layout_width="match_parent"
52                    android:layout_height="@dimen/qrcode_preview_size"/>
53                <com.android.settings.wifi.qrcode.QrDecorateView
54                    android:id="@+id/decorate_view"
55                    android:layout_width="match_parent"
56                    android:layout_height="@dimen/qrcode_preview_size"/>
57            </FrameLayout>
58            <TextView
59                android:id="@+id/error_message"
60                android:layout_width="wrap_content"
61                android:layout_height="wrap_content"
62                android:layout_marginTop="16dp"
63                android:layout_marginStart="24dp"
64                android:layout_marginEnd="24dp"
65                android:textAlignment="center"
66                android:textColor="?android:attr/colorError"
67                android:visibility="invisible"/>
68        </LinearLayout>
69
70    </ScrollView>
71
72    <!--
73         The spinner indicating that the device is waiting for pairing
74         after getting valid QR code
75    -->
76    <LinearLayout
77        xmlns:android="http://schemas.android.com/apk/res/android"
78        android:id="@+id/verifying_layout"
79        android:layout_width="match_parent"
80        android:layout_height="match_parent"
81        android:gravity="center"
82        android:orientation="vertical"
83        android:visibility="gone">
84    <ProgressBar
85        android:id="@+id/verifying_progress"
86        android:layout_width="wrap_content"
87        android:layout_height="wrap_content"/>
88    <TextView
89        android:layout_width="wrap_content"
90        android:layout_height="wrap_content"
91        style="@style/adb_wireless_item_progress_text"
92        android:text="@string/adb_wireless_verifying_qrcode_text"/>
93    </LinearLayout>
94</LinearLayout>
95