HorizontalScrollView - Scroll Text with finger in a TextView

How to Scroll Text with finger in a TextView

added in API Level 3

Text 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.

2. Add an TextView in the main.xml file.

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>

5. Compile and run!
http://developer.android.com/reference/android/widget/HorizontalScrollView.html