Via Cà Matta 2 - Peschiera Borromeo (MI)
+39 02 00704272
info@synaptica.info

Avoid scrolling reset (marquee ellipsize) on Android TextView

Digital solution partner

Avoid scrolling reset (marquee ellipsize) on Android TextView

This post taken from stack overflow is very very useful to save a lot of time and coding!

http://stackoverflow.com/questions/28305745/textview-scrolling-is-resetting-when-i-update-a-different-textview-from-the-same

The problem is that the horizontal scroll animation on an Android TextView in mode ellipsize marquee is reset every time in the containing layout something changes when a relative size is set on the TextView (MATCH_PARENT and/or WRAP_CONTENT).

If we specify fixed size the reset does not happens, how to do?

Leave a Reply