My TextView scrolls only when the finger is in contact with the screen and only for the distance which the finger moved. How to enable fling scrolling in the TextView?
<TextView
android:id="@+id/helloWorld"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:text="@string/hello_world"
tools:context=".HelloWorld"
android:scrollbars="horizontal|vertical"
android:scrollbarSize="@dimen/scrollBarSize"
android:scrollbarFadeDuration="2000"/>
I found some sample code here: Vertical fling scrolling of text line in Android Please tell me there is a better way to do this!