The solution of using toast. Cancel () method to optimize toast content display in Android
•
Android
A bug found in the product testing process is that the tester keeps clicking a button madly. After the toast is triggered, the toast content will be displayed in line and can not disappear quickly. This may affect the use of users.
You can see that toast has a cancel () method:
I made toast into an application class, which is easy to use. You can use it directly:
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码