# Print output for @column tags ?>
public
class
MaskFilterSpan
extends CharacterStyle
implements
UpdateAppearance
| java.lang.Object | ||
| ↳ | android.text.style.CharacterStyle | |
| ↳ | android.text.style.MaskFilterSpan | |
Span that allows setting a MaskFilter to the text it's attached to.
For example, to blur a text, a BlurMaskFilter can be used:
MaskFilter blurMask = new BlurMaskFilter(5f, BlurMaskFilter.Blur.NORMAL);
SpannableString string = new SpannableString("Text with blur mask");
string.setSpan(new MaskFilterSpan(blurMask), 10, 15, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
MaskFilterSpan.Public constructors | |
|---|---|
MaskFilterSpan(MaskFilter filter)
Creates a |
|
Public methods | |
|---|---|
MaskFilter
|
getMaskFilter()
Return the mask filter for this span. |
void
|
updateDrawState(TextPaint ds)
|
Inherited methods | |
|---|---|
public MaskFilterSpan (MaskFilter filter)
Creates a MaskFilterSpan from a MaskFilter.
| Parameters | |
|---|---|
filter |
MaskFilter: the filter to be applied to the TextPaint |
public MaskFilter getMaskFilter ()
Return the mask filter for this span.
| Returns | |
|---|---|
MaskFilter |
the mask filter for this span |