滚动视图中text区域的滚动文本
scroll text of textArea on scroll view
我在滚动文本区域的文本时遇到问题。我有以下代码结构1-垂直布局的横截面图。2-在此滚动视图上保持视图。3-在此视图上保留文本区域。
在这种结构中,文本滚动不平滑。
我想您正在寻找这段代码
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/headerlayout"
android:layout_above="@+id/bottomlayout"
>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/text_aboutus"
android:layout_marginTop="10dp"
android:padding="10dp"
android:text="@string/text_data"
android:textSize="13sp"
android:textColor="#000" />
</ScrollView>
如果您需要水平滚动文本视图,请在xml文件中尝试
<HorizontalScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
. . . .
</HorizontalScrollView>
如果您需要滚动文本查看,请在活动中尝试此操作
textview.setMovementMethod(ScrollingMovementMethod.getInstance());
相关文章:
- 使用.animate滚动文本
- 在html中的图像上滚动文本
- Phonegap/Cordova中的可滚动文本区域
- 如何将图像放入我的滚动文本js中
- 如何创建具有滚动背景图像的可滚动文本区域
- 滚动文本中的顶部单词
- JavaScript滚动文本;t负载变量
- 使用 JavaScript 滚动文本区域
- jquery:滚动文本的问题
- 最有效的滚动文本
- 显示滚动文本消息
- 如何使用javascript/jquery在图像上动态滚动文本
- 滚动视图中text区域的滚动文本
- 禁止滚动文本
- Jquery滚动文本像选框
- 使用鼠标拖动滚动文本
- 如何使用HTML5流畅地滚动文本
- 滚动文本框并设置属性
- 滚动文本辅助(HTML)
- 如何在流体布局中创建可调整大小的滚动文本框