#1 xml中声明
<TextView
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:clickable="false"
android:gravity="center"
android:lineSpacingMultiplier="1.2"
android:longClickable="false"
android:maxHeight="300.0dip"
android:scrollbars="none"
android:textColor="@color/black_333333"
android:textSize="@dimen/sp_16" />
#2 代码设置
TextView tv_content = (TextView) findViewById(R.id.message);
tv_content.setMovementMethod(ScrollingMovementMethod.getInstance());