1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 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:androidprv="http://schemas.android.com/apk/prv/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:id="@+id/root" 22 style="@style/Widget.SliceView.Panel" 23 android:layout_width="wrap_content" 24 android:layout_height="wrap_content"> 25 26 <ImageView android:id="@+id/icon" 27 android:layout_width="28dp" 28 android:layout_height="28dp" 29 android:src="@drawable/ic_bt_le_audio_sharing" 30 android:layout_marginTop="5dp" 31 android:layout_marginBottom="20dp" 32 app:layout_constraintEnd_toEndOf="parent" 33 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintBottom_toTopOf="@id/title" 35 app:layout_constraintTop_toTopOf="parent" /> 36 37 <TextView 38 android:id="@+id/title" 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_marginBottom="20dp" 42 android:gravity="center_vertical|center_horizontal" 43 android:maxLines="1" 44 android:ellipsize="end" 45 android:text="@string/quick_settings_bluetooth_audio_sharing_dialog_title" 46 android:textAppearance="@style/TextAppearance.Dialog.Title" 47 android:textSize="24sp" 48 app:layout_constraintEnd_toEndOf="parent" 49 app:layout_constraintStart_toStartOf="parent" 50 app:layout_constraintBottom_toTopOf="@id/subtitle" 51 app:layout_constraintTop_toBottomOf="@id/icon" /> 52 53 <TextView 54 android:id="@+id/subtitle" 55 android:layout_width="wrap_content" 56 android:layout_height="wrap_content" 57 android:layout_marginBottom="20dp" 58 android:gravity="center_vertical|center_horizontal" 59 android:ellipsize="end" 60 android:maxLines="2" 61 android:textAppearance="@style/TextAppearance.Dialog.Body.Message" 62 android:textFontWeight="500" 63 app:layout_constraintEnd_toEndOf="parent" 64 app:layout_constraintStart_toStartOf="parent" 65 app:layout_constraintBottom_toTopOf="@id/message" 66 app:layout_constraintTop_toBottomOf="@id/title" /> 67 68 <TextView 69 android:id="@+id/message" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:layout_marginBottom="20dp" 73 android:gravity="center_vertical|center_horizontal" 74 android:ellipsize="end" 75 android:maxLines="2" 76 android:text="@string/quick_settings_bluetooth_audio_sharing_dialog_message" 77 android:textAppearance="@style/TextAppearance.Dialog.Body.Message" 78 app:layout_constraintEnd_toEndOf="parent" 79 app:layout_constraintStart_toStartOf="parent" 80 app:layout_constraintBottom_toTopOf="@id/share_audio_button" 81 app:layout_constraintTop_toBottomOf="@id/subtitle" /> 82 83 <Button 84 android:id="@+id/share_audio_button" 85 style="@style/SettingsLibActionButton" 86 android:textColor="?androidprv:attr/textColorOnAccent" 87 android:background="@drawable/audio_sharing_rounded_bg_ripple_top" 88 android:layout_marginBottom="4dp" 89 android:layout_width="0dp" 90 android:layout_height="wrap_content" 91 android:minHeight="64dp" 92 android:contentDescription="@string/accessibility_bluetooth_device_settings_see_all" 93 app:layout_constraintStart_toStartOf="parent" 94 app:layout_constraintEnd_toEndOf="parent" 95 app:layout_constraintTop_toBottomOf="@+id/message" 96 app:layout_constraintBottom_toTopOf="@+id/switch_active_button" 97 android:text="@string/quick_settings_bluetooth_audio_sharing_button" 98 android:maxLines="2" /> 99 100 <Button 101 android:id="@+id/switch_active_button" 102 style="@style/SettingsLibActionButton" 103 android:textColor="?androidprv:attr/textColorOnAccent" 104 android:background="@drawable/audio_sharing_rounded_bg_ripple_bottom" 105 android:layout_marginBottom="20dp" 106 android:layout_width="0dp" 107 android:layout_height="wrap_content" 108 android:minHeight="64dp" 109 android:contentDescription="@string/accessibility_bluetooth_device_settings_pair_new_device" 110 app:layout_constraintStart_toStartOf="parent" 111 app:layout_constraintEnd_toEndOf="parent" 112 app:layout_constraintTop_toBottomOf="@+id/share_audio_button" 113 app:layout_constraintBottom_toBottomOf="parent" 114 android:maxLines="2" /> 115</androidx.constraintlayout.widget.ConstraintLayout>