如何取消吐司 [英] How to cancel Toast

查看:181
本文介绍了如何取消吐司的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个Android应用程序,我面临着吐司的一个问题。 假如我是​​显示一个面包,它显示在应用程序窗口中。 当一个对话框出现,敬酒不瞬间消失。

I developed an android application and I am facing a problem with Toast. Suppose I am displaying a Toast, it is displayed on the application window. When a Dialog box is appears, the toast doesn't disappear instantly .

我想知道我怎么能取消敬酒。

I want to know how I can cancel the toast.

推荐答案

Toast.makeText 返回吐司对象。呼叫取消()这个对象就取消它。

Toast.makeText returns a Toast object. Call cancel() on this object to cancel it.

这篇关于如何取消吐司的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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