This file contains hidden or 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
public class Utf8MaxLengthFilter implements InputFilter { | |
private int maxLength; | |
public Utf8MaxLengthFilter(int maxLength) { | |
this.maxLength = maxLength; | |
} | |
@Override | |
public CharSequence filter(CharSequence source, int start, int end, Spanned dest, |
This file contains hidden or 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
class OutlineSpan( | |
@ColorInt private val strokeColor: Int, | |
@Dimension private val strokeWidth: Float | |
): ReplacementSpan() { | |
override fun getSize( | |
paint: Paint, | |
text: CharSequence, | |
start: Int, | |
end: Int, |