【Android自学笔记】android实现TextView垂直滚动显示
16lz
2021-01-23
android利用TextView显示信息时,由于内容过多,不能在一屏中显示所有内容,所以需要下拉滚动条实现内容的显示。如下图所示:
layout实现代码是:
<ScrollViewxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:scrollbars="vertical" android:fadingEdge="vertical">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/description1"
android:textColor="#071907" android:paddingTop="5dip" />
</ScrollView>
更多相关文章
- android上各个浏览器的内核信息对比
- 在eclipse中查看android SDK的源代码
- Android彻底组件化—代码和资源隔离
- 获取Android的Java源代码并在Eclipse中关联查看的最新方法
- Android JNI打印c\c++日志信息
- 在代码中实现android:tint效果
- 【Android 开发】: Android 消息处理机制之二: Message 中 obtai
- pandaboard ES学习之旅——4 Android源代码下载与编译