Code example for AbsoluteSizeSpan

0
	@Override 
	public void setText(CharSequence text, BufferType type) {
		if (!TextUtils.isEmpty(text) && text.toString().contains("/")) {
			String[] s = text.toString().split("/");
			SpannableString sp = new SpannableString(text);
			sp.setSpan(new AbsoluteSizeSpan((int) (this.getTextSize() + 25)), 0, s[0].length(), Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
			super.setText(sp, type);
		} else { 
			super.setText(text, type);
		} 
	} 
} 
Experience pair programming with AI  Get Codota for Java