我关注了 Sample Code
在Big Text Notifications
部分,他说需要展开查看Big Text Notifications
表格,如下图:
我想知道我们不能在大文本通知中将扩展通知设置为默认值吗?
知道它是否可以的人,
如果可以的话,
请告诉我怎么做,
谢谢,
最佳答案
A notification's big view appears only when the notification is expanded, which happens when the notification is at the top of the notification drawer, or when the user expands the notification with a gesture.
所以我的回答是否定的,你不能默认扩展它。
但是,有一个技巧可以将通知推送到列表顶部,以便展开。只需将优先级设置为 Notification.PRIORITY_MAX
您的应用的通知很有可能会出现在顶部。
关于android - 是否可以在大文本通知中将扩展通知设置为默认值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23331682/