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="36dp" 31 android:layout_height="36dp" 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:layout_height="wrap_content" 40 android:id="@+id/bluetooth_device_name" 41 android:textDirection="locale" 42 android:textAlignment="gravity" 43 android:paddingStart="20dp" 44 android:paddingEnd="10dp" 45 android:paddingTop="15dp" 46 android:maxLines="1" 47 android:ellipsize="end" 48 app:layout_constraintTop_toTopOf="parent" 49 app:layout_constraintStart_toEndOf="@+id/bluetooth_device_icon" 50 app:layout_constraintEnd_toStartOf="@+id/guideline" 51 app:layout_constraintBottom_toTopOf="@+id/bluetooth_device_summary" 52 android:gravity="center_vertical" 53 android:textSize="14sp" /> 54 55 <TextView 56 android:layout_width="0dp" 57 android:layout_height="wrap_content" 58 android:id="@+id/bluetooth_device_summary" 59 android:paddingStart="20dp" 60 android:paddingEnd="10dp" 61 android:paddingBottom="15dp" 62 android:maxLines="1" 63 android:ellipsize="end" 64 app:layout_constraintTop_toBottomOf="@+id/bluetooth_device_name" 65 app:layout_constraintStart_toEndOf="@+id/bluetooth_device_icon" 66 app:layout_constraintEnd_toStartOf="@+id/guideline" 67 app:layout_constraintBottom_toBottomOf="parent" 68 android:gravity="center_vertical" 69 android:textSize="14sp" /> 70 71 <androidx.constraintlayout.widget.Guideline 72 android:layout_width="wrap_content" 73 android:layout_height="wrap_content" 74 android:id="@+id/guideline" 75 app:layout_constraintGuide_percent="0.8" 76 android:orientation="vertical"/> 77 78 <View 79 android:id="@+id/divider" 80 android:layout_width="1dp" 81 android:layout_height="38dp" 82 app:layout_constraintStart_toEndOf="@+id/guideline" 83 app:layout_constraintEnd_toStartOf="@+id/gear_icon" 84 app:layout_constraintTop_toTopOf="parent" 85 app:layout_constraintBottom_toBottomOf="parent" /> 86 87 <View 88 android:id="@+id/gear_icon" 89 android:layout_width="0dp" 90 android:layout_height="0dp" 91 android:contentDescription="@string/accessibility_bluetooth_device_settings_gear" 92 app:layout_constraintStart_toEndOf="@+id/divider" 93 app:layout_constraintEnd_toEndOf="parent" 94 app:layout_constraintTop_toTopOf="parent" 95 app:layout_constraintBottom_toBottomOf="parent" /> 96 97 <ImageView 98 android:id="@+id/gear_icon_image" 99 android:layout_width="0dp" 100 android:layout_height="24dp" 101 android:paddingEnd="24dp" 102 android:src="@drawable/ic_settings_24dp" 103 app:layout_constraintBottom_toBottomOf="parent" 104 app:layout_constraintEnd_toEndOf="parent" 105 app:layout_constraintTop_toTopOf="parent" /> 106</androidx.constraintlayout.widget.ConstraintLayout>