Textview with different Textsize
suggest changeYou can archive different Textsizes inside a Textview with a Span
TextView textView = (TextView) findViewById(R.id.textView);
Spannable span = new SpannableString(textView.getText());
span.setSpan(new RelativeSizeSpan(0.8f), start, end, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
textView.setText(span)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents