I copy and paste the image into EditText, but EditText shows me 'obj'

Adding an image EditTextworks fine. However, copying the image is another problem.

When I paste the image on EditTextwith ImageSpan, it displays correctly, but I copy the pasted image, EditText shows me only "obj".

Is there anyone who knows how to solve this problem?

+3
source share
2 answers

According to the documentation forClipboardManager currently, you can only get text from the clipboard, so I don’t think it will be you can paste the image.

EditText onTextContextMenuItem(), ImageSpan , , Clipboard .

+1

Source: https://habr.com/ru/post/1728572/


All Articles