1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2019 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
18<LinearLayout
19    xmlns:android="http://schemas.android.com/apk/res/android"
20    xmlns:app="http://schemas.android.com/apk/res-auto"
21    android:id="@+id/entity_header"
22    style="@style/EntityHeader"
23    android:layout_width="match_parent"
24    android:layout_height="wrap_content"
25    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
26    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
27    android:orientation="vertical">
28
29    <androidx.constraintlayout.widget.ConstraintLayout
30        android:layout_width="match_parent"
31        android:layout_height="wrap_content"
32        android:layout_gravity="center_horizontal"
33        android:gravity="center">
34
35        <TextView
36            android:id="@+id/entity_header_title"
37            style="@style/TextAppearance.EntityHeaderTitle"
38            android:layout_height="wrap_content"
39            android:layout_width="wrap_content"
40            android:ellipsize="marquee"
41            android:textDirection="locale"
42            android:layout_marginStart="48dp"
43            android:layout_marginEnd="48dp"
44            app:layout_constraintStart_toStartOf="parent"
45            app:layout_constraintEnd_toEndOf="parent"
46            app:layout_constraintTop_toTopOf="parent"
47            app:layout_constraintBottom_toBottomOf="parent"
48            app:layout_constrainedWidth="true" />
49        <ImageButton
50            android:id="@+id/rename_button"
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:minWidth="@dimen/min_tap_target_size"
54            android:minHeight="@dimen/min_tap_target_size"
55            android:background="@android:color/transparent"
56            android:src="@drawable/ic_mode_edit"
57            android:contentDescription="@string/bluetooth_rename_button"
58            android:tint="@color/settingslib_materialColorOnSurface"
59            app:layout_constraintStart_toEndOf="@+id/entity_header_title"
60            app:layout_constraintTop_toTopOf="parent"
61            app:layout_constraintBottom_toBottomOf="parent"
62            android:visibility="gone" />
63    </androidx.constraintlayout.widget.ConstraintLayout>
64
65    <TextView
66        android:id="@+id/entity_header_summary"
67        style="@style/TextAppearance.EntityHeaderSummary"
68        android:layout_width="wrap_content"
69        android:layout_height="wrap_content"
70        android:layout_gravity="center_horizontal"
71        android:layout_marginTop="2dp"
72        android:ellipsize="marquee"
73        android:textDirection="locale"/>
74
75    <LinearLayout
76        android:layout_width="match_parent"
77        android:layout_height="wrap_content"
78        android:layout_marginTop="16dp"
79        android:orientation="horizontal">
80
81        <include
82            android:id="@+id/layout_left"
83            layout="@layout/advanced_bt_entity_sub"/>
84
85        <include
86            android:id="@+id/layout_middle"
87            layout="@layout/advanced_bt_entity_sub"/>
88
89        <include
90            android:id="@+id/layout_right"
91            layout="@layout/advanced_bt_entity_sub"/>
92
93    </LinearLayout>
94
95</LinearLayout>
96