I have a ImageSpan set in the TextEdit. And I want to add the action - when user click on the ImageSpan, it will popup a dialog and show the big image.
I checked the
I have found the key point。 In order to response to click action, we not only set clickablespan , but also set edittext'setMovementMethod, the code is like this:
EditText.setMovementMethod(LinkMovementMethod.getInstance());
Here is the problem. If set setMovementMethod
to LinkMovementMethod.getInstance()
, the edittext's cursor will be gone. I don't know why