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


On Tue, Feb 10, 2009 at 11:54 AM, Mark Murphy <mmur...@commonsware.com> wrote:
>
> manoj wrote:
>> Hi frnds,
>>
>> I would like to write m2 (m to the power of 2, 2 should be on top of m
>> in lower case).
>>
>> Can any one please tell me how to do this?
>
> Find the superscript-2 character in the font you want to use, and use
> that character. Many fonts have that one built in.
>
> If you are looking for a general purpose superscript routine, though,
> I'm not aware that Android has one, outside of the one buried in WebKit
> somewhere.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
>
> Android Training on the Ranch! -- Mar 16-20, 2009
> http://www.bignerdranch.com/schedule.shtml
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to