[android-developers] Re: Hide TextView after some time

2011-07-08 Thread MG
Did that, thanks :) It is my first "real" app, so there are surely still lots of things that are done in an "ugly" way. Best regards, Matic On Jul 7, 3:19 pm, Mark Murphy wrote: > On Thu, Jul 7, 2011 at 9:16 AM, MG wrote: > > Solved. > > Created new Runnable with t.setVisibility(4). Then as su

Re: [android-developers] Re: Hide TextView after some time

2011-07-07 Thread Mark Murphy
On Thu, Jul 7, 2011 at 9:16 AM, MG wrote: > Solved. > Created new Runnable with t.setVisibility(4). Then as suggested, added > removeCallbacks() and it works perfectly. It would be even better if you called setVisibility(View.INVISIBLE), rather than hard-coding in some magic number. -- Mark Mur

[android-developers] Re: Hide TextView after some time

2011-07-07 Thread MG
Solved. Created new Runnable with t.setVisibility(4). Then as suggested, added removeCallbacks() and it works perfectly. Thank you! M On Jul 7, 1:55 pm, Mark Murphy wrote: > Use removeCallbacks() to get rid of your posted Runnable when it is no > longer valid, and schedule a fresh one. > > > > >