Making your textview scrollable

xml portion:
add these:

android:maxLines="3"
android:scrollbars="vertical"
android:text="1. Line 1\n2. Line 2\n3. Line 3\n4. Line 4\n5. Line5"

In your activity add

yourTextView.setMovementMethod(new ScrollingMovementMethod());
Advertisements