• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright (C) 2025 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<FrameLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
20    android:layout_width="wrap_content"
21    android:layout_height="match_parent">
22    <androidx.constraintlayout.widget.ConstraintLayout
23        android:layout_height="match_parent"
24        android:layout_width="@dimen/notification_menu_item_width"
25        android:background="@drawable/notification_menu_button_background"
26        android:backgroundTint="@androidprv:color/materialColorPrimaryContainer"
27        android:padding="@dimen/notification_menu_button_padding">
28        <ImageView
29            android:id="@+id/promoted_menuitem_icon"
30            android:layout_width="wrap_content"
31            android:layout_height="wrap_content"
32            android:tint="@androidprv:color/materialColorPrimary"
33            android:src="@drawable/unpin_icon" />
34        <TextView
35            android:id="@+id/promoted_menuitem_text"
36            android:layout_width="wrap_content"
37            android:layout_height="wrap_content"
38            android:text="@string/notification_inline_disable_promotion_button"
39            style="@style/TextAppearance.NotificationMenuButtonText"/>
40        <androidx.constraintlayout.helper.widget.Flow
41            android:id="@+id/flow3"
42            android:orientation="vertical"
43            android:layout_width="wrap_content"
44            android:layout_height="wrap_content"
45            app:flow_verticalStyle="packed"
46            app:flow_horizontalAlign="center"
47            app:flow_verticalAlign="center"
48            app:constraint_referenced_ids="promoted_menuitem_icon,promoted_menuitem_text"
49            app:layout_constraintTop_toTopOf="parent"
50            app:layout_constraintBottom_toBottomOf="parent"
51            app:layout_constraintEnd_toEndOf="parent"
52            app:layout_constraintStart_toStartOf="parent"/>
53    </androidx.constraintlayout.widget.ConstraintLayout>
54</FrameLayout>