我开发一个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.
上一篇:出于对Android模拟器内存错误,但不是在装置是在、模拟器、但不、装置
下一篇:如何使用这两种Ontouch和的onClick一个ImageButton的?这两种、如何使用、Ontouch、onClick