tags:

views:

59

answers:

1

can we have ticker in android

A: 

I assume this is a follow up to http://stackoverflow.com/questions/3179283/ticker-in-android

In your xml-layout file, add this to your TextView

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

and in your code:

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

why this is needed: http://code.google.com/p/android/issues/detail?id=5364

slup
i have done it but when i move cursor from that textview to other widget like bnutton or any other widget ,the text in the textview will not move like ticker
nilesh
can anybody have solution for this problem of ticker in android
nilesh