Reading RTF directly to a TextView on Android

99封情书 提交于 2021-02-19 08:09:06

问题


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:

  1. 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
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!