开发者

Toast message length [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

Can an Android Toast be longer than “Toast.LENGTH_LONG”?

Is there a way to make Toast messages last longer than Toast.LENGTH_LONG. I don't feel this length of time 开发者_如何学编程is quite long enough for the user to read the notification I'm displaying.


For this kind of messages there is the Dialog class. Actually to be more precise the AlertDialog class. A help text should be visible to the user as long as the user needs that help message.

You should also take a look at the Creating Dialogs article on the developers site.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜