1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2023 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:id="@+id/bluetooth_device_row"
21    style="@style/BluetoothTileDialog.Device"
22    android:layout_width="match_parent"
23    android:layout_height="@dimen/bluetooth_dialog_device_height"
24    android:paddingEnd="0dp"
25    android:paddingStart="20dp"
26    android:layout_marginBottom="4dp">
27
28    <ImageView
29        android:id="@+id/bluetooth_device_icon"
30        android:layout_width="24dp"
31        android:layout_height="24dp"
32        app:layout_constraintStart_toStartOf="parent"
33        app:layout_constraintTop_toTopOf="parent"
34        app:layout_constraintBottom_toBottomOf="parent"
35        android:layout_gravity="center_vertical" />
36
37    <TextView
38        android:layout_width="0dp"
39        android:id="@+id/bluetooth_device_name"
40        style="@style/BluetoothTileDialog.DeviceName"
41        android:textDirection="locale"
42        android:textAlignment="gravity"
43        android:paddingStart="20dp"
44        android:paddingTop="15dp"
45        android:maxLines="1"
46        android:ellipsize="end"
47        app:layout_constraintTop_toTopOf="parent"
48        app:layout_constraintStart_toEndOf="@+id/bluetooth_device_icon"
49        app:layout_constraintEnd_toStartOf="@+id/guideline"
50        app:layout_constraintBottom_toTopOf="@+id/bluetooth_device_summary"
51        android:gravity="center_vertical"
52        android:textSize="14sp" />
53
54    <TextView
55        android:layout_width="0dp"
56        android:id="@+id/bluetooth_device_summary"
57        style="@style/BluetoothTileDialog.DeviceSummary"
58        android:paddingStart="20dp"
59        android:paddingBottom="15dp"
60        android:maxLines="1"
61        android:ellipsize="end"
62        app:layout_constraintTop_toBottomOf="@+id/bluetooth_device_name"
63        app:layout_constraintStart_toEndOf="@+id/bluetooth_device_icon"
64        app:layout_constraintEnd_toStartOf="@+id/guideline"
65        app:layout_constraintBottom_toBottomOf="parent"
66        android:gravity="center_vertical" />
67
68    <androidx.constraintlayout.widget.Guideline
69        android:layout_width="wrap_content"
70        android:layout_height="wrap_content"
71        android:id="@+id/guideline"
72        app:layout_constraintGuide_percent="0.8"
73        android:orientation="vertical"/>
74
75    <View
76        android:id="@+id/gear_icon"
77        android:layout_width="0dp"
78        android:layout_height="0dp"
79        android:contentDescription="@string/accessibility_bluetooth_device_settings_gear"
80        app:layout_constraintStart_toEndOf="@+id/guideline"
81        app:layout_constraintEnd_toEndOf="parent"
82        app:layout_constraintTop_toTopOf="parent"
83        app:layout_constraintBottom_toBottomOf="parent" />
84
85    <ImageView
86        android:id="@+id/gear_icon_image"
87        android:layout_width="0dp"
88        android:layout_height="24dp"
89        android:paddingEnd="24dp"
90        android:src="@drawable/ic_settings_24dp"
91        app:layout_constraintBottom_toBottomOf="parent"
92        app:layout_constraintEnd_toEndOf="parent"
93        app:layout_constraintTop_toTopOf="parent" />
94</androidx.constraintlayout.widget.ConstraintLayout>