Android 设置一个TextView可以垂直滚动
来源:互联网 发布:office电脑版办公软件 编辑:程序博客网 时间:2024/05/01 02:01
TextView设置了高度,超过了的内容就看不到了,这个时候我们设置其本身提供的scrollbars
垂直 :vertical
水平:horizontal
<TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="200dp" android:layout_weight="2.89" android:maxLines="12" android:scrollbars="vertical" android:text=" " android:textColor="#000" />
private TextView LocationResult;LocationResult = (TextView)findViewById(R.id.textView1);LocationResult.setMovementMethod(ScrollingMovementMethod.getInstance());//主要是这句话在起作用
0 0
- Android 设置一个TextView可以垂直滚动
- Android 中 设置TextView垂直滚动
- Android 使TextView文本可以水平和垂直滚动
- Android TextView 垂直自动滚动
- android TextView 垂直自动滚动
- android TextView 垂直自动滚动
- android TextView 垂直自动滚动
- android TextView 的垂直滚动
- android TextView 垂直自动滚动字幕实现
- android实现TextView垂直或水平滚动
- android自定义View-垂直滚动的TextView
- android应用中TextView垂直滚动
- android TextView 垂直自动滚动字幕实现
- android自定义View-垂直滚动的TextView
- [Android] TextView的垂直滚动效果
- android TextView 垂直自动滚动字幕实现
- Android TextView多行垂直滚动
- android TextView 垂直自动滚动字幕实现
- IOS UIControl、UIButton
- 原码、反码与补码详解
- php不输出文字格式
- 数组集合、对象转Json方法
- 华为机试——杨辉三角变形
- Android 设置一个TextView可以垂直滚动
- jdbc----常用语句命令
- 并发问题----提高速度
- scp命令
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- 从僵尸网络追踪到入侵检测 第2章 检测环境
- 行政划分
- 《现代控制工程》负载元件方程的推导
- 安装nginx踩到的坑