How to add the superscript affect to the string?

by Christoph Studer » Tue, 10 Feb 2009 19:15:19 GMT


Sponsored Links
 Actually, styled text supports superscript. A string resource like
<string name="E_mc2">E=mc<sup><small>2</small></sup></string>

will display as expected.

Christoph






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



How to add the superscript affect to the string?

by Mark Murphy » Tue, 10 Feb 2009 19:28:45 GMT


 


Is there a definitive list floating around somewhere of the HTML tags
that string resources support?

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 

Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml 

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


Sponsored Links


How to add the superscript affect to the string?

by Christoph Studer » Tue, 10 Feb 2009 19:59:31 GMT


 Not that I know of.

One can find some clues here:
 http://code.google.com/android/reference/android/text/Spannable.html #setSpan(java.lang.Object,
int, int, int)
 http://code.google.com/android/reference/android/text/style/CharacterStyle.html 

Christoph






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



How to add the superscript affect to the string?

by Mark Murphy » Tue, 10 Feb 2009 20:11:57 GMT


 


Sometime when I have spare time (bwahahahahahaha!) I'll have to sit down
and try to work up a reasonably-definitive list.

Thanks for pointing it out!

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android Training in Sweden --  http://www.sotrium.com/training.php 

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



Other Threads

1. android Telephony API access levels

in telephony API what are the access levels, can i change certain
methods????
in other terms i wanted to run my application on top of telephony API.
When a call comes or when dialing a  certain number i want to access
my application and need to display my application output as well.

so will i be able to run third party applications on top of API???
can i be able to change native methods???
what are the access levels ??

regards,
Randika

-- 

2. Google Analytics for Android: Dispatcher thinks it finished, but there were 65 failed events

I get this strange error message: W/googleanalytics(29930): Dispatcher
thinks it finished, but there were 65 failed events

Anyone an idea where this comes from and what the solution/workaround
is?

-- 

3. accessing database on server side

4. Bad sound quality after codec integration

5. Final Updat

6. For Dreamers G1 read this first

7. Help : upgrade ROM