我在 N Developer Preview 1 上使用 RemoteInput
允许用户输入一些文本作为 Notification
的一部分。它起作用了,但是当用户按下“发送” "按钮,一个不确定的进度指示器出现了,它永远不会消失:
这是应该发生的吗?我该如何摆脱它?
最佳答案
Is this supposed to happen?
显然,是的。
How do I get rid of it?
更新通知
。那可以:
- 在
RemoteInput
中重新添加以接受新输入,或者 - 不在
RemoteInput
中添加,但可能会更新Notification
的其他方面以指示您已收到并处理了输入
或者,如果合适,cancel()
Notification
。
This sample project演示如何使用 RemoteInput
和 N Developer Preview。
关于android - 如何摆脱 Android N 上 RemoteInput 通知的进度指示器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35988259/