我想为我的安卓应用程序创建交互式通知,就像iOS:https://news.dueapp.com/ios-10-notifications-one-step-forward-one-step-back-fe712469184e中的通知一样。我知道android从Jellybean(4.1)推出了交互式通知功能。
我的问题是:我可以在交互式通知中定义多少操作?
提前谢谢。
发布于 2017-06-27 02:42:22
查看Android notification not showing more than 3 actions和https://developer.android.com/reference/android/app/Notification.Builder.html
你不能添加超过3个动作,如果你想做像iOS这样的事情,你将不得不做你自己的通知布局,或者你也可以添加1个动作来打开一个带有选项的对话框。
https://stackoverflow.com/questions/44766400
复制相似问题