How to Scroll Text with finger in a TextView
added in API Level 3Text wider than the TextView can be scrolled horizontally. Put your finger on the text and move text from side to side to read.
1. Create an Android project, if you don't already have one.
3. Ensure the minSDKVersion is, 3 or greater.
4. In the main.xml file, add the code below.
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content" >
<TextView
...
android:text="This is a very, very, very long line of text to test the HorizontalScrollView in a TextView."
/>
</HorizontalScrollView>
Related Articles:
- Scroll Text with finger in an EditText Make a Scrolling Marquee on a TextView
- Limit the Number of Times a Marquee is repeated in a TextView/EditText
- Stop a Scrolling Marquee on a TextView
http://stackoverflow.com/questions/19762984/scrolling-single-line-long-text-in-textview