/**
* MarqueeTextView.java
* com.jerome.widget
*
* Function: TODO
*
* ver date author
* ──────────────────────────────────
* 2013-5-29 Jerome Song
*
* Copyright (c) 2013, TNT All Rights Reserved.
*/
package com.jerome.widget;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* @author Jerome Song <br>
* 跑马灯效果的TextView
*
*/
public class MarqueeTextView extends TextView {
public MarqueeTextView(Context context) {
super(context);
}
public MarqueeTextView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public MarqueeTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public boolean isFocused() {
return true;
}
@Override
protected void onFocusChanged(boolean focused, int direction,
Rect previouslyFocusedRect) {
}
}