1<?xml version="1.0" encoding="utf-8"?>
2<!--
3     Copyright (C) 2018 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
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
46            <FrameLayout
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content"
49                android:clipChildren="true">
50                <TextureView
51                    android:id="@+id/preview_view"
52                    android:layout_width="match_parent"
53                    android:layout_height="@dimen/qrcode_preview_size"/>
54                <com.android.settings.wifi.qrcode.QrDecorateView
55                    android:id="@+id/decorate_view"
56                    android:layout_width="match_parent"
57                    android:layout_height="@dimen/qrcode_preview_size"/>
58            </FrameLayout>
59
60            <TextView
61                android:id="@+id/error_message"
62                android:layout_width="wrap_content"
63                android:layout_height="wrap_content"
64                android:layout_marginTop="16dp"
65                android:layout_marginStart="24dp"
66                android:layout_marginEnd="24dp"
67                android:textAlignment="center"
68                android:textColor="?android:attr/colorError"
69                android:visibility="invisible"/>
70
71        </LinearLayout>
72
73    </ScrollView>
74
75</LinearLayout>
76
77