一直滚动的TextView[跑马灯效果]
来源:互联网 发布:用友t3数据恢复 编辑:程序博客网 时间:2024/05/02 01:28
/** * 一直滚动的TextView[跑马灯效果] */public class AlwaysMarqueeTextView extends TextView {public AlwaysMarqueeTextView(Context context) {super(context);}public AlwaysMarqueeTextView(Context context, AttributeSet attrs) {super(context, attrs);}public AlwaysMarqueeTextView(Context context, AttributeSet attrs,int defStyle) {super(context, attrs, defStyle);}@Overridepublic boolean isFocused() {return true;}} <com.xxx.view.AlwaysMarqueeTextView android:id="@+id/xxx_tv01" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerInParent="true" android:ellipsize="marquee" android:focusable="true" android:marqueeRepeatLimit="marquee_forever" android:singleLine="true" android:text="一直滚动的TextView[跑马灯效果]" android:textColor="@color/black" />
注意加上属性:
android:marqueeRepeatLimit="marquee_forever"
0 0
- 一直滚动的TextView[跑马灯效果]
- 一直滚动的TextView[跑马灯效果]
- TextView跑马灯效果,也就是,自动滚动文字的效果。
- TextView一直显示跑马灯效果
- Textview的文字滚动,跑马灯效果的实现
- android中TextView中文本滚动的跑马灯效果
- TextView实现滚动字幕的效果【跑马灯】
- Android实现跑马灯Textview滚动效果的问题解决
- TextView的跑马灯效果为什么滚动不起来???
- android textview 跑马灯 滚动效果
- android textview 跑马灯 滚动效果
- Android TextView 跑马灯滚动效果
- TextView 文字滚动 跑马灯效果
- TextView单行滚动效果(跑马灯)
- textview 的跑马灯效果
- TextView的跑马灯效果
- textview跑马灯的效果
- TextView的跑马灯效果
- js数组去重的三种常用方法总结
- 如何在Android源码中修改BootClassPath
- 关于烂代码的那些事(上)
- html元素的CSS定位分析
- 判断二分图 bfs
- 一直滚动的TextView[跑马灯效果]
- threeperson 2016年开发列表
- jquery.ztree增加checkbox选项(可选以及不可选)
- Docker 常用命令
- 玩转linux--TFTP
- 三木运算符return错误:
- 图文素材上传(永久性素材)说明:
- 以太网,IP,TCP,UDP数据包分析
- 50道线程面试题