You can use the Vertical Marquee TextView library for Android with some changes.
First download the library source code and add it to your project.
Then go to the VerticalMarqueeTextView class and add a HorizontalScrollView instead of a ScrollView .
Finally, change the run method of MarqueeRunnable as such -
@Override public void run() { final int width = textView.getWidth(); final int parentWidth = this.parent.getWidth(); if (width > 0 && parentWidth > 0 && width > parentWidth) { if (this.textView.getScrollX() >= width) { this.textView.scrollTo(-parentWidth,0 ); } else { this.textView.scrollBy(VerticalMarqueeTextView.this.unitDisplacement, 0); } this.textView.invalidate(); } }
What is it.
He also recommended changing all "Vertical" references in the fields and methods of the library to "Horizontal" to indicate its current use.
Please note that this has not been fully tested, but it seems to work.
source share