是否可以在大文本通知中将扩展通知设置为默认值? [英] Is possible set Expanded Notification as default in Big Text Notifications?

查看:77
本文介绍了是否可以在大文本通知中将扩展通知设置为默认值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了示例代码

Big Text Notifications部分中,他说需要扩展以查看Big text notification形式,如下图所示:

In Big Text Notifications section, he said that need expand to see Big text notification form, as image im below :

我想知道我们不能set Expanded Notification as default in 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.

所以我的回答是否",默认情况下您无法展开它.

So my answer is no, you can't expand it by default.

但是,有一个技巧可以将通知推送到列表的顶部,在该位置扩展该通知.只需将优先级"设置为 Notification.PRIORITY_MAX ,您的应用通知很可能会成功到顶部.

There is however a trick to push the notification to the top of the list where it would be expanded. Simply set the Priority to Notification.PRIORITY_MAX and chances are that your app's notification will make it to the top.

这篇关于是否可以在大文本通知中将扩展通知设置为默认值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆