在这里mark一下老是忘记,老了。。。。
TextView tv=((TextView)super.findViewById(R.id.tv));
tv.setMovementMethod(ScrollingMovementMethod.getInstance());// 设置TextView 文本可以滚动
通过以上文字就能滚动了
<TextView
android:id="@+id/tv"
android:singleLine="false"
android:scrollbars="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_world" />
布局管理器中要指定下滚动的方向