android - Android 中的通知取消按钮

标签 android notifications

There is a croos button in notification, how to add that??

屏幕截图包含来自两个不同应用程序的通知。 在上方的通知中,有一个取消按钮,如何在通知中添加该按钮。 任何帮助将非常感激。

最佳答案

使用 documentation 中概述的自定义通知布局.

关于android - Android 中的通知取消按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23557911/

相关文章:

java - 我想在 android 中为手机联系人创建组

android - 当用户卸载应用程序时停止发送 firebase 通知

android - PendingIntent 获取请求代码

swift - 本地通知覆盖之前的本地通知

java - 用手电筒重播摩尔斯电码?

android - 正确使用 WindowManager.removeViewImmediate()

android - 从 Android 服务创建实时通知

android - 删除或隐藏 android 中的通知栏

java - 2 semi circle seekarc around a button

android - 如何从图库中选择图像并将其设置为位图