xml文件添加属性 android:scrollbars="vertical" Java设置方法 TextView.setMovementMethod(ScrollingMovementMethod.getInstance());