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 change language settings

Hi
We can change language options manually,But
How to change the language settings on android phone through application
Can u give me sample code

-- 

2. Using WifiManager to connect to a network

Hello everyone,

I am using a Nexus One with 2.1 SDK. I am having problems with a module in my 
application connecting programmatically to a network/AP. The code snippet that 
I am using is:

WifiConfiguration wifiConfig = new WifiConfiguration();
wifiConfig.BSSID="00:0C:41:F5:B0:08";
wifiConfig.SSID="test";
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wifi.setWifiEnabled(true);
int netId = wifi.addNetwork(wifiConfig);
wifi.enableNetwork(netId, true);

Monitoring the network, I see probe requests transmitting from the device, but 
I do not see an Authentication/Association request to the access point that I 
specify in the BSSID. Ultimately, I will perform a scan to determine valid AP 
BSSIDs, but for testing, I simply want to connect to a test AP which is in 
close proximity to my Nexus One.

I have set the appropriate permissions in my manifest xml and am not seeing any 
negative log statements from adb.

Any pointers or suggestions with using WifiManager to perform this action would 
be very appreciated.

Thank you very much!

Dan

-- 

3. reg AttributeSet

4. Regarding Tv out in Android

5. Why are my SharedPreferences suddenly deleted, after I updated my game in the Market?

6. Suspicious TCP RST packets while device is sleeping.

7. How to Generate Android Testing Report in HTML Automatically