Android中用Toast.cancel()方法优化toast内容的显示
产品在测试过程中发现一个bug,就是测试人员不停的疯狂的点击某个按钮,触发了toast以后,toast内容会一直排着队的显示出来,不能很快的消失。这样可能会影响用户的使用。
看到Toast有一个cancel()方法:
void
cancel()
Close the view if it's showing, or don't show it if it is...
2011-12-09 16:24:57 ·
106 阅读 ·
0 评论