开发者

Toast Message in Android

开发者 https://www.devze.com 2023-02-17 09:14 出处:网络
Friends, In my application Toast message is Displayed in Activity say UserActivity.class.. That activity includes a button, in which it will Redirect to next Activity in OnClick of butto开发者_StackO

Friends, In my application Toast message is Displayed in Activity say UserActivity.class..

That activity includes a button, in which it will Redirect to next Activity in OnClick of butto开发者_StackOverflow社区n..

What i want is that my Toast Message should display in UserActivity until user taps Button, if user Taps the button my toast message has to be Disappear and Next activity will appear..

Is it possible to do like this, if so how its possible?

Thanks Venkatesh.


This is quite simple. Just call the cancel method on your ToastMessage as soon as you don't want to show the ToastMessage anymore. Refer Toast cancel()

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号