问题
I have a RTF file saved in a database column, i need to read that text and display it with style into a TextView on the Android.
From what i have searched, i didn't find how to read RTF directly on the android.
What i have tried are:
- Searching for something to convert RTF to HTML (on the web service (C#) and on the Android) (I haven't found a suitable solution, found this but i didn't know how to use it... too many classes and i didn't know how to deal with it, i will try again until someone replies here
- Displayed the Text in plain text. (looks very very ugly)
Thanks for Reading, Please try to help
回答1:
I made a class library based on: Writing Your Own RTF Converter By Jani Giannoudis | 26 Apr 2011
My project is hosted on Github
Thanks to the people who read and tried to help.
来源:https://stackoverflow.com/questions/9451191/reading-rtf-directly-to-a-textview-on-android