This website is the best, with the help of this I have a lot ... I am starting to make Android applications. This is my first time that I will ask a question here. My question is how to display a text visit for 5 seconds and make it disappear. When I search I found some code but I did not know how to use it or Maybe how can I use it is wrong .. So can someone give me a very easy example please do it please ?? I really appreciate your help ...... & gt; & Gt; (I do not want to lose the text, I want to hide the hole text view)
If you want to show it, there will be a way to use it
public void onCreate (...) {... timer = new MyCountdown (5000, 1000); } Private Sector MyCountDown CountDownTimer {Long period, interval; Public Mycountdown (Long Million Infusion, Long Countdown Interval) {Super (Mills Infouch, Countdown Interval); // TODO Automatically Generated Manufacturer Stub (); } @ Override Public empty on Finnish () {textView1.setVisibility (see. INVISIBLE); } @ Override Tick (long period) on public zero {// can set text for a timer}} You can also use one. There are also many other ways with a good example of
TimerTask
< Code> Timer Task example with timer t = new timer (wrong); T.schedule (New Timer Task) {@ Override Public Wide Run) (RunOnUrthrud (New Runnabal) (Public Zero Run) {txt.setVisibility (see INVISIBLE);}})}}}, 5000);
No comments:
Post a Comment