安卓通知 : make ticker text stay longer

标签 android notifications

我正在研究 JellyBean。当通知出现在状态栏中时,通知中的代码文本出现和消失。通知图标会一直保留在那里(在状态栏中),直到我们清除通知。是否可以在通知被清除之前将代码文本也保留在状态栏中?

最佳答案

不,抱歉 - 代码文本,如 Toast,被设计为 transient 的。毕竟,状态栏中还有其他内容会被代码文本取代。

关于安卓通知 : make ticker text stay longer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11674714/

相关文章:

android - 更改每个项目的 RecyclerView.ItemDecoration 颜色

java - Android Emulator“启动器没有响应你想关闭它吗?

后台 iOS 通知

android - SDK 中的 Android 服务问题 >= 26

android - 清除操作按钮上的通知点击

android - ORM Lite 在创建包含多级外键的表时抛出错误

android:nextFocusForward 在布局中被忽略

android - 我的 Android 应用程序版本超出预期

ios - 从配对的苹果 watch 启动 iPhone 应用程序

android - 使用方法 :- Manual notification or using Push Notification via web service