1. In Android, the content in TextView often causes us to be unable to browse, so we can add scrollbars for TextView to navigate through the entire contents of TextView through the scroll bar.
2. Add a vertical scroll bar to the TextView layout file:
android:scrollbars= "Vertical"
Example:
<textview
android:id= "@+id/tv_notecontent"
android:layout_width= "match_parent"
android:layout_ height= "Wrap_content"
android:minlines= "android:paddingtop=" "
3dip"
android:textcolor= "#603912"
android:scrollbars= "vertical"
android:textsize= "19sp"/>
3. You also need to add in the Java file:
Textview.setmovementmethod (Scrollingmovementmethod.getinstance ());
Example:
Private TextView tv_content = null;
Tv_content = (TextView) This.findviewbyid (r.id.tv_notecontent);
Tv_content.setmovementmethod (Scrollingmovementmethod.getinstance ());
4. OK, Enjoy it!!!