Created
December 22, 2015 12:00
-
-
Save sergiandreplace/fc00df7f655688bc91cc to your computer and use it in GitHub Desktop.
Making a textview with multiple lines scrollable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="0dp" | |
android:layout_weight="1" | |
android:id="@+id/myTextView" | |
android:scrollbars="vertical" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
myTextView.setMovementMethod(new ScrollingMovementMethod()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment