1<!--
2  ~ Copyright (C) 2020 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~      http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
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="match_parent">
22
23    <TextView
24        android:id="@+id/trusted_device_instruction"
25        android:layout_width="0dp"
26        android:layout_height="wrap_content"
27        android:layout_marginStart="@dimen/car_ui_margin"
28        android:layout_marginEnd="@dimen/car_ui_margin"
29        android:minHeight="@dimen/list_item_height"
30        android:gravity="center_vertical"
31        android:paddingStart="@dimen/list_item_text_no_icon_margin_start"
32        android:paddingEnd="@dimen/list_item_text_margin_end"
33        android:paddingBottom="@dimen/list_item_content_margin_bottom"
34        android:paddingTop="@dimen/list_item_content_margin_top"
35        android:text="@string/trusted_device_feature_instruction"
36        android:textAppearance="@style/TrustedDeviceMessage"
37        app:layout_constraintStart_toStartOf="parent"
38        app:layout_constraintEnd_toEndOf="parent"
39        app:layout_constraintTop_toTopOf="parent"/>
40
41    <androidx.constraintlayout.widget.ConstraintLayout
42        android:id="@+id/connection_button"
43        android:layout_width="0dp"
44        android:layout_height="wrap_content"
45        android:layout_marginStart="@dimen/car_ui_margin"
46        android:layout_marginEnd="@dimen/car_ui_margin"
47        android:minHeight="@dimen/list_item_height"
48        app:layout_constraintTop_toBottomOf="@+id/trusted_device_instruction"
49        app:layout_constraintStart_toStartOf="parent"
50        app:layout_constraintEnd_toEndOf="parent">
51        <TextView
52            android:id="@+id/trusted_device_item_title"
53            android:layout_width="0dp"
54            android:layout_height="wrap_content"
55            android:layout_marginStart="@dimen/list_item_text_no_icon_margin_start"
56            android:layout_marginEnd="@dimen/list_item_text_margin_end"
57            android:textAppearance="@style/TrustedDeviceTitle"
58            app:layout_constraintStart_toStartOf="parent"
59            app:layout_constraintEnd_toStartOf="@+id/switch_start_guideline"
60            app:layout_constraintTop_toTopOf="parent"
61            app:layout_constraintBottom_toBottomOf="parent"/>
62        <androidx.constraintlayout.widget.Guideline
63            android:id="@+id/switch_start_guideline"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:orientation="vertical"
67            app:layout_constraintGuide_end="@dimen/car_ui_list_item_icon_container_width" />
68        <Switch
69            android:id="@+id/trusted_device_switch"
70            android:layout_width="wrap_content"
71            android:layout_height="wrap_content"
72            android:layout_gravity="center"
73            app:layout_constraintStart_toEndOf="@+id/switch_start_guideline"
74            app:layout_constraintEnd_toEndOf="parent"
75            app:layout_constraintTop_toTopOf="parent"
76            app:layout_constraintBottom_toBottomOf="parent"/>
77    </androidx.constraintlayout.widget.ConstraintLayout>
78
79</androidx.constraintlayout.widget.ConstraintLayout>
80