android: 不需要焦点的 TextView跑马灯 MarqueeTextView

public class MarqueeTextView extends TextView { public MarqueeTextView(Context appCon) { super(appCon); } 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) { } }