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. ADC2 submission: Aurora Device Search (was Aurora 1.0 is available in MarketPlace - more than device search)




+1!  It took me hour which text needs to be deleted when adding release
log.... :(






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

2. Earning a living on Android - personal experiences

Very interesting, thanks for writing those up.

How large of a company/group is working specifically on Android in your
case?

- Dan





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

3. How to force a ListView to rebuild/repaint itself

4. How to pass a variable to a new activity via intent ?

5. stereo audio is not coming via headset

6. How to use MediaStore to get content URI of audio file saved in sdcard ?

7. How to pass a variable to a new activity via intent ?