How to save EditText styles

by loty » Wed, 19 Nov 2008 12:16:43 GMT

Sponsored Links
 I have an EditText where users can set text to bold, italic, etc but I
can't figure out how to save that text with style in db. I use getText
but that only returns text and no style info.
Any help is appreciated.

How to save EditText styles

by Dianne Hackbod » Wed, 19 Nov 2008 13:27:03 GMT

 We don't currently have a general flat rich text format for android.  You
can use android.text.TextUtils.htmlEncode and android.text.Html for
converting to/from HTML, but those may not be able to represent all of the
style information in your text view.

Dianne Hackborn


Sponsored Links

Other Threads

1. Verizon attacks iPhone with ne w 鈥楧roid鈥?campaign

It's about fricken time.  T-Mobile, if you are reading, WTF?  You
should have done this a year ago instead of leave it up to your

Now let's hope app sales go up or at least increase a bit.


2. TabHost crash (was: hardcoded borders)

anyone any ideas about this? did the XML layout rules for TabHost 
change in 1.5? i now don't have anything at all in my onCreate() 
beyond the super() call, and i still get the same TabHost crash. 
thanks in advance.



3. Android 1.6 deployement status

4. Android Music Player noy indexing mp3 files

5. ADC2 entries so far...

6. Basic game structuring with two threads?

7. path to pwd