在TextView中添加
android:scrollbars="vertical"
android:singleLine="false"
在Activity代码中添加:
final TextView about_text = (TextView) contentView.findViewById(R.id.about_text); /** * 只有调用了该方法,TextView才能不依赖于ScrollView而实现滚动的效果。 */ about_text.setMovementMethod(ScrollingMovementMethod.getInstance());