【发布时间】:2012-09-03 11:42:04
【问题描述】:
我一直在玩 Jelly Bean 中新的丰富通知,当我使用模板 Notification.BigPictureStyle、Notification.BigTextStyle 或 Notification.InboxStyle 设置新通知时,一切正常。我可以使用Notification.Builder.addAction() 方法,操作按钮显示在扩展通知的底部。但是当我尝试使用Notification.bigContentView 创建一个cutsom 通知时,操作按钮永远不会出现。
澄清一下,如果我从不设置bigContentView,按钮就会显示出来。但是一旦该字段设置为自定义 RemoteViews 对象,按钮就会消失。
有人知道为什么会这样吗?
【问题讨论】:
标签: android notifications android-4.2-jelly-bean