Custom Toast Cancel not working

前端 未结 4 1059
南笙
南笙 2021-02-09 20:52

I have seen a number of questions on cancelling toast. None of them is working.

I have a custom Toast. The code for that is all but one line same as http://developer.an

4条回答
  •  自闭症患者
    2021-02-09 21:13

    in above code toast.setDuration(Toast.LENGTH_LONG); in that u use toast.setDuration(Toast.LENGTH_SHORT); or se the particular time.Toast is cancelled automatically.we can't cancel it

提交回复
热议问题