textView的跑马灯效果
来源:互联网 发布:ie8 href javascript 编辑:程序博客网 时间:2024/05/07 09:35
TextView的跑马灯效果:
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="marquee" android:focusable="true" android:focusableInTouchMode="true" android:marqueeRepeatLimit="marquee_forever" android:singleLine="true" android:text="-------------------------------------跑马灯跑马灯跑马灯跑马灯跑马灯跑马灯跑马灯" />
这行代码:android:ellipsize=”marquee” 跑马灯效果
android:ellipsize=”start” 省略号在开头
android:ellipsize=”middle” 省略号在中间
android:ellipsize=”end” 省略号在结尾
android:ellipsize=”marquee” 跑马灯显示
这两行:
android:focusable=”true”
android:focusableInTouchMode=”true”
获取焦点的。
这行代码:android:marqueeRepeatLimit=”marquee_forever”
表示跑马灯循序的次数,可以写1,2,3次,marquee_forever一直循环
这行代码android:singleLine=”true” 单行显示,不然的话会换行不会跑马灯。
0 0
- textview 的跑马灯效果
- TextView的跑马灯效果
- textview跑马灯的效果
- TextView的跑马灯效果
- TextView 跑马灯的效果
- TextView的跑马灯效果
- textView的跑马灯效果
- TextView的跑马灯效果
- TextView的跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView跑马灯效果
- TextView 跑马灯效果
- TextView 跑马灯效果
- TextView跑马灯效果
- hbase通过row key 的前缀查询记录
- ceph存储修改vm密钥(密码)
- 内部类
- [架站] 為什麼網站的根目錄最好有 favicon.ico 和 robots.txt 存在?
- android中点击空白处隐藏软键盘
- textView的跑马灯效果
- 【jQuery日期处理】两个时间大小的比较
- java基础-静态方法
- python3.5 django1.10 demo 遇见的问题
- visio2007类图实现关系
- Centos 以光盘为yum源安装
- BottomNavigationBar的使用
- 系统架构基础+流程改进
- Git(七)、分支管理策略