public class TextMarquee extends TextView {
public TextMarquee(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) {
if (focused)
super.onFocusChanged(focused, direction, previouslyFocusedRect);
}
@Override
public void onWindowFocusChanged(boolean hasWindowFocus) {
if (hasWindowFocus)
super.onWindowFocusChanged(hasWindowFocus);
}
@Override
public boolean isFocused() {
return true;
}
}
TextView 跑马灯效果一个布局可用多个效果
猜你喜欢
转载自blog.csdn.net/u014434239/article/details/84247331
今日推荐
周排行