I'm currently playing with the marquee feature of Android's Textview. But there is a problem- I have a layout containing a few TextView. On one of them, which shows a title of an music file, I want to apply the marquee feature. On another, I keep updating the current track time (every second).
The problem is, everytime the TextView which shows the track time is updated (setText()), the marquee of the other TextView stops. I guess this is because setTExt() moves the focus to the TextView which I to apply the text to.
Is there a solution for this?
I used a custom class for the marquee TextView from this tutorial
Is there a possibility (maybe a custom class as well) for the other TextView to not "steal" focus?
Thanks!
Regards
You can simply requestFocus(); back onto the TextView you want to marquee after the new music TextView has updated. If you can't accomplish this, post some code an we can help.