用textView实现跑马灯效果
2015-12-08 09:13
225 查看
原理很简单,只是定义textView的属性。
<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="大王叫我来巡山啊 意义、、二一四一粉丝覅有合法的福利费斯夫妇都市服饰" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:singleLine="true" android:gravity="center" android:textSize="30sp" />
相关文章推荐
- 二叉树求高度、叶子节点个数、总节点个数
- javascript 保留两位小数
- 1058. A+B in Hogwarts (20)【水题】——PAT (Advanced Level) Practise
- MyBatis学习 之 一、MyBatis简介与配置MyBatis+Spring+MySql
- 人工智能:第六章 专家系统
- 【BestCoder Round 65E】【网络流+讨论 奇偶分类思想】n个数形成若干至少3元素素数环的可行性检验 数可以为1
- 计算直线角度
- 人工智能:第五章 计算智能(2)
- JAVA中字符串比较equals()和equalsIgnoreCase()的区别
- dumpbin命令查看dll导出函数
- 【BestCoder Round 65D】【树形DP 容斥思想】ZYB's Tree 求距离每个节点距离不超过k的节点数
- spring bean id和bean name的区别
- 图的邻接矩阵实现_MGraph
- JS与jQ读取xml文件的方法
- iOS开-UIKit( UITableView.h - -解读)
- 1057. Stack (30)【栈+树状数组】——PAT (Advanced Level) Practise
- 北京Uber优步司机奖励政策(12月8日)
- CSDN博文“待定”如何避免检测规则分析“待定”
- JavaScript----this陷阱的最全收集
- 【BestCoder Round 65C】【树状数组 动态查找第k大 O(nlogn)】ZYB's Premutation 告诉你前i个数中的逆序对数让你还原全排列