TextView 文字垂直滚动:
法一:
<ScrollView
android:layout_width="fill_parent"
android:layout_height="80px"
android:fadingEdge="vertical"
android:scrollbars="vertical" >
<TextView
android:id="@+id/rFileContent"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</ScrollView>
不能显示滚动条,不知道怎么显示。
法二:
android:maxLines = "AN_INTEGER"
android:scrollbars = "vertical"
然后在的代码中用:
yourTextView.setMovementMethod(new ScrollingMovementMethod());