1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:layout_width="match_parent"
22    android:layout_height="wrap_content"
23    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
24    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
25    android:layout_marginTop="@dimen/qc_code_preference_margin"
26    android:layout_marginBottom="@dimen/qc_code_preference_margin"
27    android:layout_centerHorizontal="true"
28    android:gravity="center_horizontal"
29    android:orientation="vertical">
30
31    <TextView
32        android:id="@+id/hotspot_qr_code_instruction"
33        android:layout_width="wrap_content"
34        android:layout_height="wrap_content"
35        android:layout_marginBottom="@dimen/qc_code_preference_margin"
36        android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
37
38    <androidx.cardview.widget.CardView
39        android:layout_width="wrap_content"
40        android:layout_height="wrap_content"
41        android:scaleType="fitCenter"
42        android:antialias="true"
43        android:layout_marginTop="@dimen/qc_code_preference_margin"
44        android:layout_marginBottom="@dimen/qc_code_preference_margin"
45        app:cardElevation="@dimen/card_view_elevation"
46        app:cardCornerRadius="@dimen/rounded_corner_radius">
47        <ImageView
48            android:id="@+id/hotspot_qr_code"
49            android:layout_width="wrap_content"
50            android:layout_height="wrap_content"/>
51    </androidx.cardview.widget.CardView>
52
53    <TextView
54        android:id="@+id/hotspot_qr_code_password"
55        android:layout_width="wrap_content"
56        android:layout_height="wrap_content"
57        android:layout_marginTop="@dimen/qc_code_preference_margin"
58        android:layout_marginBottom="@dimen/qc_code_preference_margin"
59        android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"/>
60
61    <View
62        android:layout_width="match_parent"
63        android:layout_height="@dimen/divider_preference_height"
64        android:layout_marginBottom="@dimen/divider_preference_margin_top"
65        android:layout_marginTop="@dimen/divider_preference_margin_bottom"
66        style="@style/Preference.CarUi.Divider"/>
67</LinearLayout>
68