Joshua Duong | 85a65e2 | 2018-11-08 06:56:45 -0800 | [diff] [blame] | 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 | android:layout_width="match_parent" |
| 21 | android:layout_height="match_parent" |
| 22 | android:theme="@style/GlifV3Theme.Light" |
| 23 | android:icon="@drawable/ic_scan_32dp"> |
| 24 | |
| 25 | <LinearLayout |
| 26 | style="@style/SudContentFrame" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="match_parent" |
| 29 | android:orientation="vertical" |
| 30 | android:gravity="center_horizontal"> |
| 31 | |
| 32 | <LinearLayout |
| 33 | android:layout_width="match_parent" |
| 34 | android:layout_height="match_parent" |
| 35 | android:orientation="vertical" |
| 36 | android:gravity="center_horizontal" |
| 37 | android:id="@+id/camera_layout"> |
| 38 | |
| 39 | <TextView |
| 40 | android:id="@android:id/summary" |
| 41 | style="@style/TextAppearance.SudGlifBody" |
| 42 | android:layout_width="wrap_content" |
| 43 | android:layout_height="wrap_content" |
| 44 | android:layout_marginStart="?attr/sudMarginSides" |
| 45 | android:layout_marginEnd="?attr/sudMarginSides" |
| 46 | android:textAlignment="center" |
| 47 | android:accessibilityLiveRegion="polite"/> |
| 48 | |
| 49 | <LinearLayout |
| 50 | android:layout_width="match_parent" |
| 51 | android:layout_height="match_parent" |
| 52 | android:gravity="center" |
| 53 | android:orientation="vertical"> |
| 54 | |
| 55 | <FrameLayout |
| 56 | android:layout_width="wrap_content" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:clipChildren="true"> |
| 59 | <TextureView |
| 60 | android:id="@+id/preview_view" |
| 61 | android:layout_width="match_parent" |
| 62 | android:layout_height="@dimen/qrcode_preview_size"/> |
| 63 | <com.android.settings.wifi.qrcode.QrDecorateView |
| 64 | android:id="@+id/decorate_view" |
| 65 | android:layout_width="match_parent" |
| 66 | android:layout_height="@dimen/qrcode_preview_size"/> |
| 67 | </FrameLayout> |
| 68 | |
| 69 | <TextView |
| 70 | android:id="@+id/error_message" |
| 71 | style="@style/TextAppearance.ErrorText" |
| 72 | android:layout_width="wrap_content" |
| 73 | android:layout_height="wrap_content" |
| 74 | android:layout_marginTop="16dp" |
| 75 | android:layout_marginStart="?attr/sudMarginSides" |
| 76 | android:layout_marginEnd="?attr/sudMarginSides" |
| 77 | android:textAlignment="center" |
| 78 | android:visibility="invisible"/> |
| 79 | |
| 80 | </LinearLayout> |
| 81 | |
| 82 | </LinearLayout> |
| 83 | |
| 84 | <!-- |
| 85 | The spinner indicating that the device is waiting for pairing |
| 86 | after getting valid QR code |
| 87 | --> |
| 88 | <LinearLayout |
| 89 | android:id="@+id/verifying_layout" |
| 90 | android:layout_width="match_parent" |
| 91 | android:layout_height="match_parent" |
| 92 | android:gravity="center" |
| 93 | android:orientation="vertical" |
| 94 | android:visibility="gone"> |
| 95 | |
| 96 | <ProgressBar |
| 97 | android:id="@+id/verifying_progress" |
| 98 | android:layout_width="wrap_content" |
| 99 | android:layout_height="wrap_content"/> |
| 100 | |
| 101 | <TextView |
Joshua Duong | 2a85924 | 2020-04-01 13:52:17 -0700 | [diff] [blame] | 102 | android:id="@+id/verifying_textview" |
Joshua Duong | 85a65e2 | 2018-11-08 06:56:45 -0800 | [diff] [blame] | 103 | android:layout_width="wrap_content" |
| 104 | android:layout_height="wrap_content" |
| 105 | style="@style/adb_wireless_item_progress_text" |
Joshua Duong | 2a85924 | 2020-04-01 13:52:17 -0700 | [diff] [blame] | 106 | android:text="@string/adb_wireless_verifying_qrcode_text" |
| 107 | android:accessibilityLiveRegion="polite"/> |
Joshua Duong | 85a65e2 | 2018-11-08 06:56:45 -0800 | [diff] [blame] | 108 | |
| 109 | </LinearLayout> |
| 110 | |
| 111 | </LinearLayout> |
| 112 | </com.google.android.setupdesign.GlifLayout> |