布局文件中设置属性 android:scrollbars="vertical"
,代码中设置tv.setMovementMethod(ScrollingMovementMethod.getInstance());
如此,定高情况下,TextView文本内容过长则可以上下滚动
设置属性
android:textIsSelectable="true"
则可以将控件中文本选中复制等操作
布局文件中设置属性 android:scrollbars="vertical"
,代码中设置tv.setMovementMethod(ScrollingMovementMethod.getInstance());
如此,定高情况下,TextView文本内容过长则可以上下滚动
设置属性
android:textIsSelectable="true"
则可以将控件中文本选中复制等操作