Android: How can i put fonts of different size in a view?

by rohan_lais » Fri, 14 Jan 2011 21:29:03 GMT


Sponsored Links
 I tried <font size="" > in string resource but it did not work.

-- 



Re: Android: How can i put fonts of different size in a view?

by Hari Edo » Sat, 15 Jan 2011 03:40:42 GMT


 You win for the most terse question of the day.

Only a little bit of HTML markup is supported.  The Android docs
for Html.fromHtml() are almost as short as your question.  Try
simple tags like <small> and <big> instead of complicated ones
like <font size="whatever">.




-- 


Sponsored Links


Other Threads

1. Location of Gears Local DB

hey guys,

I was wondering if anyone could direct me to where Gears is putting
the local SQL Lite DBs.

I can't seem to find it mentioned in the documentation anywhere!

Thanks!

Evan
--~--~---------~--~----~------------~-------~--~----~

2. Retrieving Draft SMS details

Hello,

while implementing an SMS application I ve faced this issue. Despite
not having any problem to read any
SMS from the "content://sms" uri, when there is e a draft SMS in the
SMS table, only its message body is retrieved, but not the address
number that has to be written in the SMS form, so that the SMS can be
saved in drafts ( this is what I ve noticed that many SMS applications
ask from the user ).
Does anyone know, if the Draft SMS are saved somewhere else,
separately or if their phone address is saved on another field than
the phone address of the SMS stored in the inbox or outbox?
It you be really helpful to me, if you could provide me with such
info!

/sermojohn
--~--~---------~--~----~------------~-------~--~----~

3. Regarding AbsoluteView being deprecated in 1.5

4. Hide address bar in Webview

5. how to support multiple APN

6. problem building for emulator after building for HTC dream

7. Playing shoutcast mp3 stream in background crashes in 1.5