1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 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<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:app="http://schemas.android.com/apk/res-auto" 20 android:layout_width="match_parent" 21 android:layout_height="match_parent"> 22 23 <LinearLayout 24 android:id="@+id/dialog_bg" 25 android:layout_width="match_parent" 26 android:layout_height="match_parent" 27 android:paddingStart="25dp" 28 android:paddingEnd="25dp" 29 android:orientation="vertical"> 30 31 <LinearLayout 32 android:layout_width="match_parent" 33 android:layout_height="wrap_content" 34 android:layout_marginBottom="25dp" 35 android:orientation="vertical"> 36 37 <ImageView 38 android:id="@+id/dialog_icon" 39 android:layout_width="30dp" 40 android:layout_height="30dp" 41 android:layout_marginTop="24dp" 42 android:layout_gravity="center" 43 android:src="@drawable/ic_bt_le_audio_sharing"/> 44 45 <TextView 46 android:id="@+id/dialog_title" 47 android:textAppearance="@android:style/TextAppearance.DeviceDefault.Headline" 48 android:textColor="?android:attr/textColorPrimary" 49 android:layout_width="wrap_content" 50 android:layout_height="wrap_content" 51 android:layout_marginTop="15dp" 52 android:gravity="center" 53 android:layout_gravity="center"/> 54 55 <TextView 56 android:id="@+id/dialog_subtitle" 57 android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" 58 android:textColor="?android:attr/textColorSecondary" 59 android:textStyle="bold" 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:layout_marginTop="15dp" 63 android:gravity="center" 64 android:layout_gravity="center" 65 android:visibility="gone"/> 66 67 <TextView 68 android:id="@+id/dialog_subtitle_2" 69 android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small" 70 android:textColor="?android:attr/textColorSecondary" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:layout_marginTop="15dp" 74 android:gravity="center" 75 android:layout_gravity="center" 76 android:visibility="gone"/> 77 </LinearLayout> 78 79 <androidx.constraintlayout.widget.ConstraintLayout 80 android:layout_width="match_parent" 81 android:layout_height="wrap_content" 82 android:layout_marginBottom="@dimen/broadcast_dialog_margin"> 83 <Button 84 android:id="@+id/left_button" 85 android:layout_width="wrap_content" 86 android:layout_height="wrap_content" 87 android:visibility="gone" 88 app:layout_constraintBottom_toBottomOf="parent" 89 app:layout_constraintStart_toStartOf="parent" 90 app:layout_constraintTop_toTopOf="parent" 91 style="@style/BroadcastActionButton"/> 92 <Button 93 android:id="@+id/right_button" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content" 96 android:visibility="gone" 97 app:layout_constraintBottom_toBottomOf="parent" 98 app:layout_constraintEnd_toEndOf="parent" 99 app:layout_constraintTop_toTopOf="parent" 100 style="@style/BroadcastActionButton"/> 101 </androidx.constraintlayout.widget.ConstraintLayout> 102 103 </LinearLayout> 104</FrameLayout>