【发布时间】:2014-07-15 10:10:23
【问题描述】:
我有一个大小为 16 个字符的 textView,如果它超过 16 个字符,我想让它可以滚动给用户以查看剩余的字符。 谁能帮帮我?
我试过这个链接Making TextView scrollable on Android
但是没有结果?
我的 TextView 布局:
<TextView
android:id="@+id/tv1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:maxLength="16"
android:scrollbars = "vertical"
android:ellipsize="end"
android:text="fdgdddhhhdhd"
/>
【问题讨论】:
-
显示你的 TextView 布局
-
我添加了 textview 请检查
-
你可以使用这个:TextView.setMovementMethod(new ScrollingMovementMethod());使用 TextView.setselected(true); ...
标签: android listview android-intent textview