* Sets notification entry on BubbleExpandedViewContainer and use that to
to populate the contents
* Adds settings + app deeplink buttons to header
* Header will use bubble metadata text if it exists or the app name
Bug: 111236845
Test: manual - tested with notify activity view based bubble that
(1) - tapping deep link button opens content intent
(2) - tapping settings button opens notif settings for app
Change-Id: I07d6beced7da001e233237b91053b0fc4b18505b
75 lines
3.0 KiB
XML
75 lines
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ Copyright (C) 2018 The Android Open Source Project
|
|
~
|
|
~ Licensed under the Apache License, Version 2.0 (the "License");
|
|
~ you may not use this file except in compliance with the License.
|
|
~ You may obtain a copy of the License at
|
|
~
|
|
~ http://www.apache.org/licenses/LICENSE-2.0
|
|
~
|
|
~ Unless required by applicable law or agreed to in writing, software
|
|
~ distributed under the License is distributed on an "AS IS" BASIS,
|
|
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
~ See the License for the specific language governing permissions and
|
|
~ limitations under the License
|
|
-->
|
|
<com.android.systemui.bubbles.BubbleExpandedViewContainer
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:orientation="vertical"
|
|
android:id="@+id/bubble_expanded_view">
|
|
|
|
<View
|
|
android:id="@+id/pointer_view"
|
|
android:layout_width="@dimen/bubble_pointer_width"
|
|
android:layout_height="@dimen/bubble_pointer_height"
|
|
/>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/header_layout"
|
|
android:layout_height="@dimen/bubble_expanded_header_height"
|
|
android:layout_width="match_parent"
|
|
android:orientation="horizontal"
|
|
android:background="@drawable/bubble_expanded_header_bg">
|
|
|
|
<TextView
|
|
android:id="@+id/header_text"
|
|
android:textAppearance="@*android:style/TextAppearance.Material.Title"
|
|
android:textSize="18sp"
|
|
android:layout_weight="1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:gravity="start|center_vertical"
|
|
android:singleLine="true"
|
|
android:paddingLeft="@dimen/bubble_expanded_header_horizontal_padding"
|
|
android:paddingRight="@dimen/bubble_expanded_header_horizontal_padding"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@+id/deep_link_button"
|
|
android:layout_width="@dimen/bubble_header_icon_size"
|
|
android:layout_height="@dimen/bubble_header_icon_size"
|
|
android:gravity="end|center_vertical"
|
|
android:src="@drawable/ic_open_in_new"
|
|
android:scaleType="center"
|
|
android:tint="?android:attr/colorForeground"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
/>
|
|
|
|
<ImageButton
|
|
android:id="@id/settings_button"
|
|
android:layout_width="@dimen/bubble_header_icon_size"
|
|
android:layout_height="@dimen/bubble_header_icon_size"
|
|
android:src="@drawable/ic_settings"
|
|
android:gravity="end|center_vertical"
|
|
android:scaleType="center"
|
|
android:tint="?android:attr/colorForeground"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.android.systemui.bubbles.BubbleExpandedViewContainer>
|