Make a textview scrollable in android

Posted On // Leave a Comment
I have successfully put this in my app. You can find my app here. So you may ask any doubts you may have via the comments section below.

Just set the following properties of your TextView in your layout's xml file.

android:maxLines = "AN_INTEGER"

android:scrollbars = "vertical"
 

Then use:
yourTextView.setMovementMethod(new ScrollingMovementMethod());
in your code.

0 comments :

Post a Comment