The size attribute is just ignored. Only "color" and "face" attributes 
takes into account. But you can use the Spannable

span.setSpan(new RelativeSizeSpan(0.8f), start, end, 
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE)

or the <big>content</big>, <small>content</small> <em>content</em> 
attributes of HTML to set the corresponding requirements. you could also 
use the 
<H1></H1> but you will run into issues regarding the margin 

On Wednesday, December 29, 2010 at 4:41:02 PM UTC+3, genxsol wrote:
>
> Hi Dear, 
>
> i am trying to put text on a text view with different size for each 
> word 
>
> textView.setText(Html.fromHtml("<font size='10' color='red'> Word1 </ 
> font> <font size='15' color='white'> Word2 </font>))); 
>
> color does work but no font size, any help plz

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/0b26d264-0541-489b-99e8-1a9c138fa519%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to