2010-07-06 5 views

Répondre

1

Je suppose que cela fait suite à https://stackoverflow.com/questions/3179283/ticker-in-android

Dans votre xml -layout fichier, ajoutez ceci à votre TextView

android:singleLine="true" 
android:ellipsize="marquee" 
android:marqueeRepeatLimit="marquee_forever" 

et dans votre code:

 TextView tv = (TextView) findViewById(R.id.tv); 
     tv.setSelected(true); 

pourquoi il est nécessaire: http://code.google.com/p/android/issues/detail?id=5364

+0

je l'ai fait, mais quand je déplace le curseur de cette textview à d'autres un widget comme bnutton ou tout autre widget le texte dans le textview ne bougera pas comme ticker – nilesh

+0

quelqu'un peut-il avoir une solution pour ce problème de ticker dans android – nilesh