In my activity I call a setText
:
tvdato.setText(String.valueOf("BIEN"));
I would like to know a method to make it provisional, that is, to last for a few seconds drawn on the screen.
In my activity I call a setText
:
tvdato.setText(String.valueOf("BIEN"));
I would like to know a method to make it provisional, that is, to last for a few seconds drawn on the screen.
You can make your
TextView
invisible after a few seconds with the help ofTimerTask
:On the other hand, I think the most useful way to display a message for a few seconds on the screen is to use a
Toast
: