• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <com.android.systemui.util.DelayableMarqueeTextView
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="marquee"
64        android:marqueeRepeatLimit="1"
65        android:singleLine="true"
66        app:layout_constraintTop_toBottomOf="@+id/bluetooth_device_name"
67        app:layout_constraintStart_toEndOf="@+id/bluetooth_device_icon"
68        app:layout_constraintEnd_toStartOf="@+id/guideline"
69        app:layout_constraintBottom_toBottomOf="parent"
70        android:gravity="center_vertical"
71        android:textSize="14sp" />
72
73    <androidx.constraintlayout.widget.Guideline
74        android:layout_width="wrap_content"
75        android:layout_height="wrap_content"
76        android:id="@+id/guideline"
77        app:layout_constraintGuide_percent="0.8"
78        android:orientation="vertical"/>
79
80    <View
81        android:id="@+id/divider"
82        android:layout_width="1dp"
83        android:layout_height="38dp"
84        app:layout_constraintStart_toEndOf="@+id/guideline"
85        app:layout_constraintEnd_toStartOf="@+id/gear_icon"
86        app:layout_constraintTop_toTopOf="parent"
87        app:layout_constraintBottom_toBottomOf="parent" />
88
89    <View
90        android:id="@+id/gear_icon"
91        android:layout_width="0dp"
92        android:layout_height="0dp"
93        android:contentDescription="@string/accessibility_bluetooth_device_settings_gear"
94        app:layout_constraintStart_toEndOf="@+id/divider"
95        app:layout_constraintEnd_toEndOf="parent"
96        app:layout_constraintTop_toTopOf="parent"
97        app:layout_constraintBottom_toBottomOf="parent" />
98
99    <ImageView
100        android:id="@+id/gear_icon_image"
101        android:layout_width="0dp"
102        android:layout_height="24dp"
103        android:paddingEnd="24dp"
104        android:src="@drawable/ic_settings_24dp"
105        app:layout_constraintBottom_toBottomOf="parent"
106        app:layout_constraintEnd_toEndOf="parent"
107        app:layout_constraintTop_toTopOf="parent" />
108</androidx.constraintlayout.widget.ConstraintLayout>