I am making a note app and I want the user to be able to highlight text. The problem is when The user sets highlighted text, then saves it to the database I have. It has to be retrieved through the code
Html.fromhtml()
In order for the Rich text to save. Even though this code above saves bold, italic, and others. It will not save highlight color. I know the html code is saving to the database but the code above cant see to know that its there. Anybody know how to save background highlight color so
Html.fromhtml()
can retrieve it
抱歉,但是Html.fromHtml()
和Html.toHtml()
都不对BackgroundColorSpan
做任何事情。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.