1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2021 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<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:id="@+id/wifi_container"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:layout_gravity="center_vertical">
24
25    <FrameLayout
26        android:layout_width="wrap_content"
27        android:layout_height="wrap_content"
28        android:layout_marginBottom="40dp"
29        android:layout_marginStart="40dp"
30        app:layout_constraintStart_toEndOf="@id/setup_qrcode_guideline"
31        app:layout_constraintTop_toTopOf="parent">
32
33        <ImageView
34            android:id="@+id/setup_qrcode_view"
35            android:layout_width="280dp"
36            android:layout_height="280dp"
37            android:src="@android:color/transparent" />
38
39        <ProgressBar
40            android:id="@+id/setup_qrcode_progress"
41            style="@android:style/Widget.Material.Light.ProgressBar.Large"
42            android:layout_width="@dimen/setup_progress_spinner_size"
43            android:layout_height="@dimen/setup_progress_spinner_size"
44            android:layout_gravity="center"
45            android:indeterminate="true"
46            android:indeterminateTint="@color/setup_list_item_background_focused"
47            android:indeterminateTintMode="src_in" />
48    </FrameLayout>
49
50    <LinearLayout
51        android:layout_width="0dp"
52        android:layout_height="wrap_content"
53        android:layout_marginEnd="40dp"
54        android:layout_marginStart="120dp"
55        android:orientation="vertical"
56        app:layout_constraintEnd_toStartOf="@id/setup_qrcode_guideline"
57        app:layout_constraintStart_toStartOf="parent"
58        app:layout_constraintTop_toTopOf="parent">
59
60        <TextView
61            android:layout_width="wrap_content"
62            android:layout_height="match_parent"
63            android:layout_marginTop="20dp"
64            android:text="@string/title_wifi_scan_qr_code"
65            android:textColor="#E8EAED"
66            android:textSize="32sp" />
67
68        <TextView
69            android:layout_width="wrap_content"
70            android:layout_height="match_parent"
71            android:layout_marginVertical="24dp"
72            android:lineSpacingExtra="6sp"
73            android:text="@string/wifi_scan_qr_code_description"
74            android:textColor="#9AA0A6"
75            android:textSize="15sp" />
76
77        <TextView
78            android:layout_width="wrap_content"
79            android:layout_height="match_parent"
80            android:text="@string/wifi_scan_qr_code_back_description"
81            android:textColor="#5F6368"
82            android:textSize="12sp" />
83    </LinearLayout>
84
85    <androidx.constraintlayout.widget.Guideline
86        android:id="@+id/setup_qrcode_guideline"
87        android:layout_width="wrap_content"
88        android:layout_height="match_parent"
89        android:orientation="vertical"
90        app:layout_constraintGuide_percent="0.55" />
91
92</androidx.constraintlayout.widget.ConstraintLayout>