当前位置: 代码迷 >> Android >> Notification怎么设置显示时长
  详细解决方案

Notification怎么设置显示时长

热度:54   发布时间:2016-05-01 20:58:26.0
Notification如何设置显示时长?
我目前通过notificationSend = new Notification(R.drawable.icon, "正在发送...",
  System.currentTimeMillis());
  notificationSend.setLatestEventInfo(this, "正在发送...", "正在发送...",
  intentSend);
这样的Notification只会显示两秒左右,然后文字消失,但图标仍在,而我想要的效果是文字和图标同时显示,等请求数据回来后再cancel,

------解决方案--------------------
你想文字一直挂在通知栏上?不行的~~~通知栏就是给你拉下来看的,开始的文字显示,只是一个提示~~
  相关解决方案