1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2022 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<merge 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" > 21 22 <TextView 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:layout_marginTop="0dp" 26 android:layout_marginStart="@dimen/qs_media_padding" 27 android:layout_marginEnd="@dimen/qs_media_padding" 28 android:id="@+id/remove_text" 29 android:fontFamily="@*android:string/config_headlineFontFamilyMedium" 30 android:singleLine="true" 31 android:ellipsize="marquee" 32 android:marqueeRepeatLimit="marquee_forever" 33 android:text="@string/controls_media_close_session" 34 android:gravity="center_horizontal|top" 35 app:layout_constraintTop_toBottomOf="@id/settings" 36 app:layout_constraintStart_toStartOf="parent" 37 app:layout_constraintEnd_toEndOf="parent" 38 app:layout_constraintBottom_toTopOf="@id/cancel" /> 39 40 <ImageButton 41 android:id="@+id/settings" 42 android:src="@drawable/ic_settings" 43 android:layout_width="0dp" 44 android:layout_height="wrap_content" 45 android:layout_marginTop="4dp" 46 android:layout_marginEnd="4dp" 47 android:background="@drawable/qs_media_light_source" 48 android:contentDescription="@string/controls_media_settings_button" 49 android:layout_gravity="top" 50 app:layout_constraintWidth_min="@dimen/min_clickable_item_size" 51 app:layout_constraintHeight_min="@dimen/min_clickable_item_size" 52 app:layout_constraintEnd_toEndOf="parent" 53 app:layout_constraintTop_toTopOf="parent"> 54 </ImageButton> 55 56 <FrameLayout 57 android:id="@+id/dismiss" 58 android:background="@drawable/qs_media_light_source" 59 android:layout_width="wrap_content" 60 android:layout_height="wrap_content" 61 android:layout_marginStart="@dimen/qs_media_padding" 62 android:layout_marginEnd="@dimen/qs_media_action_spacing" 63 android:layout_marginBottom="@dimen/qs_media_padding" 64 app:layout_constrainedWidth="true" 65 app:layout_constraintHeight_min="@dimen/min_clickable_item_size" 66 app:layout_constraintHorizontal_chainStyle="packed" 67 app:layout_constraintStart_toStartOf="parent" 68 app:layout_constraintEnd_toStartOf="@id/cancel" 69 app:layout_constraintBottom_toBottomOf="parent" 70 app:layout_constraintTop_toBottomOf="@id/remove_text"> 71 <TextView 72 android:id="@+id/dismiss_text" 73 android:layout_width="wrap_content" 74 android:layout_height="wrap_content" 75 app:layout_constraintWidth_min="@dimen/min_clickable_item_size" 76 android:layout_gravity="center|top" 77 style="@style/MediaPlayer.SolidButton" 78 android:background="@drawable/qs_media_solid_button" 79 android:text="@string/controls_media_dismiss_button" /> 80 </FrameLayout> 81 <FrameLayout 82 android:id="@+id/cancel" 83 android:background="@drawable/qs_media_light_source" 84 android:layout_width="wrap_content" 85 android:layout_height="wrap_content" 86 android:layout_marginStart="@dimen/qs_media_action_spacing" 87 android:layout_marginEnd="@dimen/qs_media_padding" 88 android:layout_marginBottom="@dimen/qs_media_padding" 89 app:layout_constrainedWidth="true" 90 app:layout_constraintWidth_min="@dimen/min_clickable_item_size" 91 app:layout_constraintHeight_min="@dimen/min_clickable_item_size" 92 app:layout_constraintStart_toEndOf="@id/dismiss" 93 app:layout_constraintEnd_toEndOf="parent" 94 app:layout_constraintBottom_toBottomOf="parent" 95 app:layout_constraintTop_toBottomOf="@id/remove_text"> 96 <TextView 97 android:id="@+id/cancel_text" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:layout_gravity="center|top" 101 style="@style/MediaPlayer.OutlineButton" 102 android:text="@string/cancel" /> 103 </FrameLayout> 104 105</merge>