TextView实现跑马灯效果
来源:互联网 发布:lol装备模拟哪个软件 编辑:程序博客网 时间:2024/04/28 15:22
一、通过属性实现跑马灯效果
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:maxLines="1" android:singleLine="true" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:text="这是一个跑马灯示例!这是一个跑马灯示例!这是一个跑马灯示例!这是一个跑马灯示例!这是一个跑马灯示例!这是一个跑马灯示例!" />
重要的代码
android:singleLine="true" //设置为单行 android:ellipsize="marquee"//以横向滚动方式显示(需获得当前焦点时) android:focusable="true"//获取焦点 android:focusableInTouchMode="true"//通过toucth来获得focus
0 0
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- textview实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView 实现跑马灯效果
- TextView 实现跑马灯效果
- TextView实现跑马灯效果
- textView跑马灯效果实现
- TextView实现跑马灯效果
- textview实现跑马灯效果
- XPATH规则总结
- Self-Learning Gene Expression Programming——自学习基因表达式编程
- 解决chrome 浏览器不能看视频
- 转。ajax内置的方法
- c语言实现2048
- TextView实现跑马灯效果
- docker系列之二 :docker的一些概念
- ping 广播ip地址发发生的一些事情
- 第十一,十二,十三章练习题
- 紫书章六例题三 Matrix Chain Multiplication(stack)
- leetcode 515 Find Largest Value in Each Tree Row C++
- JAVA当中Error和Exception的区别浅谈
- Linux学习之shell脚本——条件语句与循环语句
- 求1+2+3+...+n