[Android1.5]TextView跑马灯效果
来源:互联网 发布:手机淘宝官网找回密码 编辑:程序博客网 时间:2024/06/01 08:35
一、效果图
二、实现代码:
<TextView android:layout_width="100px"
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:ellipsize="marquee"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:text="这才是真正的文字跑马灯效果"
>
</TextView>
android:layout_height="wrap_content"
android:textColor="@android:color/white"
android:ellipsize="marquee"
android:focusable="true"
android:marqueeRepeatLimit="marquee_forever"
android:focusableInTouchMode="true"
android:scrollHorizontally="true"
android:text="这才是真正的文字跑马灯效果"
>
</TextView>
代码说明:
a). 经测试与转载文章区别主要在于这里有设置android:focusableInTouchMode
b). 测试环境为Android1.5、模拟器。
- [Android1.5]TextView跑马灯效果
- [Android1.5]TextView跑马灯效果
- [Android1.5]TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView 跑马灯效果
- TextView 跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- textview跑马灯效果
- textview跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- 用Arrays将数组转换为List
- apache 本地配置虚拟主机,单ip多域名
- 基于嵌入式Linux系统的无线网络网关设计
- PADS与PROTEL之间的转化
- ubuntu支持GBK(系统\gedit\vim)
- [Android1.5]TextView跑马灯效果
- poj 1903 LIS的Nlogn解法
- 房地产开发流程(详细)
- Andorid VS J2ME
- stdout, stderr的区别
- 多线程(J2SE学习随笔三)
- 汉字编码与编程相关问题总结:ASCII、机内码、区位码、国标码、Unicode码是如何转换的
- C语言中史上最愚蠢的Bug
- 找工作练手--KMP算法理解