I have the following:
textView.setText(Html.fromHtml("<font color="red" size="24">Hello</font>"));
The string 'Hello' does turn red but the size does not change.
It is as if the size attribute is just ignored, does anyone know why this is? Am I doing something wrong?
Size attribute seems not working.
You can use <small> or <big> (multiple times to increase the effect)
<small>
<big>
You can also use <h1> to <h6> (Header only, i.e. add a new line)
<h1>
<h6>
Its old-fashion, but it works well !
2.1m questions
2.1m answers
60 comments
57.0k users