<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 Camera 罗技C110
- android的imageview设置半透明,注意是将图片,在线等
- ListView 深深的伤了我的心
- 急!!求各位解释下 非常感谢
- android ndk 静态库调试
- "/aaa/bbb/ccc.txt"这样的路径和文件如果都没有,该怎么创建?
- IDEA开发Android的问题,生成了两个R文件,提示错误
- 关于安卓的传感器,进来讨论
- 设计又给我出难题了!内有图有说明!
- PtrFrameLayout 嵌套横向滑动RecyclerView,横向滑动冲突问题
- android WIFI无法获取RSSI信号量
- 求教:动态创建的TextView如何加入垂直滚动条?
不过你可以通过fling函数来控制滚动,在fling里就是根据你touch的长度和时间来做功能的处理,你可以根据这个速度来自己控制滚动,手动去scrollto