• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<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/wifi_dpp_scan_qr_code_join_unknown_network">
25
26    <LinearLayout
27        style="@style/SudContentFrame"
28        android:layout_width="match_parent"
29        android:layout_height="match_parent"
30        android:gravity="center_horizontal"
31        android:orientation="vertical">
32
33        <LinearLayout
34            android:layout_width="match_parent"
35            android:layout_height="match_parent"
36            android:gravity="center"
37            android:orientation="vertical">
38
39            <FrameLayout
40                android:layout_width="@dimen/qrcode_preview_size"
41                android:layout_height="@dimen/qrcode_preview_size"
42                android:clipChildren="true">
43                <TextureView
44                    android:id="@+id/preview_view"
45                    android:layout_width="wrap_content"
46                    android:layout_height="match_parent"/>
47                <com.android.settings.wifi.qrcode.QrDecorateView
48                    android:id="@+id/decorate_view"
49                    android:layout_width="wrap_content"
50                    android:layout_height="match_parent"/>
51            </FrameLayout>
52
53            <TextView
54                android:id="@+id/error_message"
55                style="@style/TextAppearance.ErrorText"
56                android:layout_width="wrap_content"
57                android:layout_height="wrap_content"
58                android:layout_marginTop="16dp"
59                android:layout_marginStart="?attr/sudMarginStart"
60                android:layout_marginEnd="?attr/sudMarginEnd"
61                android:textAlignment="center"
62                android:visibility="invisible"/>
63
64        </LinearLayout>
65
66    </LinearLayout>
67
68</com.google.android.setupdesign.GlifLayout>
69
70