1

I want to animate the text of the textview in android, i have a textview in which the text exceeds the width of the textview. I am using translate animation horizontally. It is animating the whole text view control. Using marquee property in text view does the job for me but it is quiet slow in compare to what i want to achieve. I need to know is there any way that i can animate the text of the textview (not the whole control) smoothly?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
CodeAddiction
  • 89
  • 2
  • 12

1 Answers1

0

I think you mean you want a text "marquee" for when there is too much text for the TextView. If that is the case, trying the following links:

Android Marquee

TextView Marquee not working

Community
  • 1
  • 1
Tigger
  • 8,980
  • 5
  • 36
  • 40
  • Actually the issue is that i have applied the "marquee" but the text is dynamic, i want the text to scroll horizontally even if the text is less the screen width or text view width "something link news bar at the bottom". Marquee is very slow in speed and on wider screens it looks more slow – CodeAddiction Mar 02 '13 at 09:53
  • I guess you could check the length of the string to be displayed and if it is too short, repeat the string until it is long enough to scroll. – Tigger Mar 03 '13 at 22:35