2 steps, firstly, set scroll bar rotation in AndroidManifest.xml:
android:scrollbars="vertical"
Then, set the scrolling method for the TextView, mostly in onCreate() function:
((TextView)findViewById(R.id.textview)).setMovementMethod(ScrollingMovementMethod.getInstance());
Subscribe to:
Post Comments (Atom)
Enable HP Zbook Thunderbolt 3 Dock on Ubuntu
As mention in previously post, I installed Ubuntu on my HP ZBook. After two days used all things work just fine, but the Thunderbolt 3 Dock ...
-
As mention in previously post, I installed Ubuntu on my HP ZBook. After two days used all things work just fine, but the Thunderbolt 3 Dock ...
-
To create a button in Android app like this: The layout XML: <Button android:layout_width="match_parent" andro...
-
Meet a thrift compiling failure on my project on Windows 7. Using Maven in IntelliJ so I choiced maven-thrift-pluging for thrift files. For ...
No comments:
Post a Comment