Making TextView scrollable on Android

You don’t need to use a ScrollView actually.

Just set the

android:scrollbars = "vertical"

properties of your TextView in your layout’s xml file.

Then use:

yourTextView.setMovementMethod(new ScrollingMovementMethod());

in your code.

Bingo, it scrolls!

Leave a Comment