What is the value of Toast.LENGTH_LONG and Toast.LENGTH_SHORT?

后端 未结 4 745
后悔当初
后悔当初 2021-02-11 16:14

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.

Ca

4条回答
  •  生来不讨喜
    2021-02-11 17:19

    There are only these two constants related to Toast

    http://developer.android.com/reference/android/widget/Toast.html#LENGTH_LONG

    Why would you want to know their values though? You should always use the constants instead.

提交回复
热议问题