0

Is it possible to show toast message , when user touch on screen and close when user again touch screen .

Like I have many toast message to display based on user click on screen.

A sample code will be much more appreciated.

Sujit Soni
  • 135
  • 1
  • 3
  • 14

1 Answers1

1

In this answer it's explained how you can show and cancel a toast when you desire: https://stackoverflow.com/a/13727852/6150890

To know when the user is touching the screen use an onTouchEvent(), you'll find plenty of examples if you google it

John Sardinha
  • 3,566
  • 6
  • 25
  • 55