如果需要在较小的空间里显示较多的文字内容,需要使textView可以滚动显示,实现方法:
xml文件中在textView中添加:
android:scrollbars="vertical"
TextView实例中添加:
TextView textView = new TextView();
textView.findViewByID(R.id.textView);
textView.setMovementMethod(ScrollingMovementMethod.getInstance());