<TextView android:id="@+id/textMsg"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="#F00"
android:textSize="220px"
android:ellipsize="marquee"
android:singleLine="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusable="true"
android:text="Simple application that shows how to use"
android:background="#F99"
android:gravity="center">
</TextView> 实现了文本滚动。
但想实现自由控制滚动速度是否可实现?
有什么方法?
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="#F00"
android:textSize="220px"
android:ellipsize="marquee"
android:singleLine="true"
android:focusableInTouchMode="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusable="true"
android:text="Simple application that shows how to use"
android:background="#F99"
android:gravity="center">
</TextView> 实现了文本滚动。
但想实现自由控制滚动速度是否可实现?
有什么方法?
解决方案 »
- Android怎么用代码把系统的窗口小部件中的模拟时钟放到桌面??
- 给为英雄豪杰,有了解Android UI设计的吗??我想知道 微信 的UI是如何实现的
- android2.2上下载都是自己做吗?不能使用DOWNLOAD_MANAGER?
- 关于android中使用数据模型
- [高分求解] Android使用opengles显示YUV420数据的问题
- 一个不能上网局域网内,一台设备设置wifi热点,android手机能搜索到这个wifi热点吗?
- sudo chmod -R 777 根路径,为何命令这么怪异?
- 求助,bluetooth版本
- 如何做到同一个apk在两个不同手机上显示不同界面?
- Android中使用Socket上传图片遇到的问题?
- android WIFI无法获取RSSI信号量
- 求教:动态创建的TextView如何加入垂直滚动条?
不过你可以通过fling函数来控制滚动,在fling里就是根据你touch的长度和时间来做功能的处理,你可以根据这个速度来自己控制滚动,手动去scrollto