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

后端 未结 4 743
后悔当初
后悔当初 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条回答
  •  -上瘾入骨i
    2021-02-11 17:05

    They are one and zero as detailed in the Toast documentation. They are the only two values and no others are possible. There is an "indefinite toast hack", but I would not use an application that used it.

提交回复
热议问题