TextView实现跑马灯的效果;
来源:互联网 发布:画平面示意图软件 编辑:程序博客网 时间:2024/06/06 01:54
用textview实现跑马灯的效果;
<com.example.dialoge.MyTextView android:id="@+id/textView1" android:layout_width="wrap_content" android:singleLine="true" android:focusable="true" android:ellipsize="marquee" android:focusableInTouchMode="true" android:layout_height="wrap_content" android:text="@string/hello_world" />
package com.example.dialoge;import android.content.Context;import android.util.AttributeSet;import android.view.ViewDebug.ExportedProperty;import android.widget.TextView;public class MyTextView extends TextView { public MyTextView(Context context) { super(context); // TODO Auto-generated constructor stub } public MyTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); // TODO Auto-generated constructor stub } public MyTextView(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructor stub } @Override @ExportedProperty(category = "focus") public boolean isFocused() { // TODO Auto-generated method stub return true; }}
阅读全文
0 0
- XML 实现 TextView的跑马灯效果
- Android TextView 跑马灯效果的实现
- TextView实现跑马灯的效果
- TextView实现跑马灯的效果
- 实现文字的跑马灯效果,Textview
- Android实现跑马灯效果的TextView
- 使用TextView实现跑马灯的效果
- 使用TextView实现跑马灯的效果
- TextView实现跑马灯的效果
- TextView跑马灯效果的实现
- TextView实现跑马灯的效果
- TextView实现跑马灯的效果;
- 实现跑马灯效果的TextView
- 实现跑马灯效果的textview
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- TextView实现跑马灯效果
- HTML5 多文件上传和文件操作
- 了解java线程的start方法如何回调run方法
- HTML5 audio 和 video
- 导入工程后 注释报错
- PHP修改图片颜色(生成彩色二维码)
- TextView实现跑马灯的效果;
- HTML5 绘制2D图像
- Canvas API
- Markdown Editor
- boot中的行编辑功能
- Android自定义类关闭所有活动实现退出
- HTML5 Storage
- 灌水(python实现)
- 利用JMeter的Java请求采样器进行rpc接口的性能测试