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. Button in a ListView row

Hi,

I have a standard listview, the row definition looks like this:

  <LinearLayout>
    <TextView>
    <Button>
  </LinearLayout>

not sure if this is possible - but it would be nice if the user could
scroll down the list using the trackball, and the entire LinearLayout
parent gets highlighted, and is clickable. If they wheel to the right,
while a row is highlighted, then just the Button gets highlighted.

I can't get that to work though. If I make the whole row clickable,
then I can't wheel over to the button. If I wrap the TextView in
another LinearLayout, and make that layout clickable - then wheeling
over to the right works, but the whole row won't highlight, and it
looks funny:

  <LinearLayout>
    <LinearLayout>
      <TextView>
    </LinearLayout>
    <Button>
  </LinearLayout>

anyone write something like this?

Thanks

-- 

2. [Cross Posting]Pintu Air Bogor Jebol! Jakarta Siaga 1 Banji

Bozz, ini bukan Hoax,

Katulampa Siaga 1, Awas Banjir
Jumat, 12 February 2010 19:41 WIB
  Bendung Katulampa Bogor Jawa Barat
VIVAnews.com

Jakarta, (tvOne)

Sejumlah daerah di DKI Jakarta akan digenangi air pada Sabtu 13 Februari
2010 mulai pukul 03.00 WIB. Banjir ini merupakan kiriman dari Bogor.
"Ketinggian air di pintu Katulampa sudah mencapai 250 centimeter. Ini siaga
I," kata juru bicara Gubernur DKI Jakarta, Cucu Ahmad Kurnia, Jumat (12/2).

Menurut dia, air tersebut akan sampai di Jakarta pukul 03.00 WIB. "Sebagian
wilayah Jakarta akan banjir," tegas dia. Wilayah yang berpotensi banjir
adalah Rawajati, Kalibata, Pengadegan, Kebon Baru, Bidaracina, Kampung
Melayu, Bukit Duri, dan Jatipinggir. "Kepada masyarakat yang tinggal di
daerah itu, harap mengungsi ke tempat yang aman," tegas Cucu.

sumber :
http://www.tvone.co.id/berita/view/33052/2010/02/12/katulampa_siaga_1_awas_banjir

-- 
"Indonesian Android Community [id-android]" 

3. having a NullPointerException in onTap() function with ItemizedOverlay class .. plz help

4. Emulator on Ubuntu problem running after first time starting emulator

5. Does anyone make Mozilla JSS 4.3.1/NSS 3.12.4 work at Android ?

6. Push source to Real machine.

7. <Wta> Ndrive...