Last active
December 19, 2015 22:50
-
-
Save rajkshah14/ca925d452b693f622593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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