什么是Toast.LENGTH_LONG和Toast.LENGTH_SHORT的价值? [英] What is the value of Toast.LENGTH_LONG and Toast.LENGTH_SHORT?
问题描述
我打印吐司消息在我的应用程序,以显示通知,但我想知道的价值 Toast.LENGTH_LONG和Toast.LENGTH_SHORT。 还有什么其他价值,我可以使用。
I am printing Toast message in my application to show notification but i want to know value of Toast.LENGTH_LONG and Toast.LENGTH_SHORT. What other values i can use.
谁能告诉我什么是这两个变量的值?
Can anyone tell me what is the value of these two variables?
推荐答案
还有就是回答你所期待的另一个问题。答案是:
There is another question that answers what you are looking for. The answers are:
private static final int LONG_DELAY = 3500; // 3.5 seconds
private static final int SHORT_DELAY = 2000; // 2 seconds
这是礼貌感觉良好的。您可以在下面找到整个主题。
This was courtesy of FeelGood. You can find the whole thread below.
<一个href="http://stackoverflow.com/questions/2220560/can-an-android-toast-be-longer-than-toast-length-long">Can一个Android吐司长于&QUOT; Toast.LENGTH_LONG&QUOT;?
希望这有助于。
这篇关于什么是Toast.LENGTH_LONG和Toast.LENGTH_SHORT的价值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!