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
[EMAIL PROTECTED]

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


Sponsored Links