-1

I am trying to copy formatted (rich) text to ClipboardManager in the form of HTML tags. But, when I paste it to another app, it pastes HTML tags which is a expected behaviour.

How can I copy formatted text (with images) in ClipboardManager and when it is pasted to an app which supports rich text, it shows formatted text and when it is pasted to an app which support plain text, it shows plain text?

4

1 回答 1

0
    ClipData clip = ClipData.newHtmlText("meta", content, htmlText);

它可以帮助格式化文本。

于 2017-07-31T18:52:18.857 回答