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. how to add new mimetype FLV to android media player

These are  the file you should be looking into
java/android/media/MediaFile.java
java/android/media/MediaScanner.java

Regards ,
Vishal






-- 
with regards vishal

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to trace the HTTP requests/responses e.g. by using Wireshark?

If you're using the emulator, try "emulator -tcpdump <file> <other-options>"
to create a capture file that can be opened with WireShark.
You can also do that dynamically from the emulator console with "network
capture start <file>" and "network capture stop".





--~--~---------~--~----~------------~-------~--~----~

3. Some Basic Questions

4. How to add a keyboard setting screen

5. Any way to enable gps programmatically??

6. How to power off the screen?

7. Different UI behavoir between Activity and InputMethodService (test code and video provided)