1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2024 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<androidx.constraintlayout.widget.ConstraintLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    xmlns:app="http://schemas.android.com/apk/res-auto"
20    android:layout_width="match_parent"
21    android:layout_height="wrap_content"
22    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
23    android:paddingStart="?android:attr/listPreferredItemPaddingStart">
24
25    <TextView
26        android:id="@+id/wifi_share_instruction"
27        android:layout_width="wrap_content"
28        android:layout_height="wrap_content"
29        android:text="@string/wifi_detail_share_description"
30        android:textAppearance="@style/TextAppearance.CarUi.PreferenceSummary"
31        android:layout_marginTop="@dimen/wifi_share_page_margin"
32        android:layout_marginBottom="@dimen/wifi_share_page_margin"
33        app:layout_constraintTop_toTopOf="parent"
34        app:layout_constraintBottom_toTopOf="@id/wifi_share_qr_code_container"
35        app:layout_constraintStart_toStartOf="parent"
36        app:layout_constraintEnd_toEndOf="parent"/>
37
38    <androidx.cardview.widget.CardView
39        android:id="@+id/wifi_share_qr_code_container"
40        android:layout_width="wrap_content"
41        android:layout_height="wrap_content"
42        android:scaleType="fitCenter"
43        android:antialias="true"
44        app:cardElevation="@dimen/card_view_elevation"
45        app:cardCornerRadius="@dimen/rounded_corner_radius"
46        android:layout_marginTop="@dimen/wifi_share_page_margin"
47        app:layout_constraintBottom_toBottomOf="parent"
48        app:layout_constraintEnd_toEndOf="parent"
49        app:layout_constraintStart_toStartOf="parent"
50        app:layout_constraintTop_toBottomOf="@id/wifi_share_instruction">
51        <ImageView
52            android:id="@+id/wifi_share_qr_code"
53            android:layout_width="wrap_content"
54            android:layout_height="wrap_content"/>
55    </androidx.cardview.widget.CardView>
56</androidx.constraintlayout.widget.ConstraintLayout>
57