Skip to content

Instantly share code, notes, and snippets.

@rajkshah14
Last active December 19, 2015 22:50
Show Gist options
  • Save rajkshah14/ca925d452b693f622593 to your computer and use it in GitHub Desktop.
Save rajkshah14/ca925d452b693f622593 to your computer and use it in GitHub Desktop.
import android.content.Context;
import android.text.TextUtils.TruncateAt;
import android.util.AttributeSet;
import android.widget.TextView;
public class MarqueeTextView extends TextView {
public MarqueeTextView(Context context) {
super(context);
}
public MarqueeTextView(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean isFocused() {
if (getEllipsize().equals(TruncateAt.MARQUEE))
return true;
return super.isFocused();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment