滚动条显示但不工作或滚动,如下图所示

XML:
<TextView
android:id="@+id/text_view_dialog_notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="7dp"
android:layout_marginRight="7dp"
android:hint="@string/rv_notes_content"
android:padding="5dp"
android:scrollbars="vertical"
android:minLines="10"
android:maxLines="10"
android:textSize="17sp" />哪里出了问题,怎么解决?
发布于 2019-02-06 15:48:33
使用textView上的滚动条
您必须在java中添加这一行。
textView.setMovementMethod(new ScrollingMovementMethod());发布于 2019-02-06 15:46:29
请确保将其添加到代码中:
yourTextView.setMovementMethod(new ScrollingMovementMethod());https://stackoverflow.com/questions/54557360
复制相似问题