Custom Toast Cancel not working

前端 未结 4 1052
南笙
南笙 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:19

    In the end, I created a Custom Dialog so that the user is blocked from doing anything else (and avoids multiple toasts popping up). Added a onClick Listener Event to close the dialog when user clicks the same.

    Sad that Toast.cancel() doesn't work.

提交回复
热议问题