How to add click action for the ImageSpan

后端 未结 5 759
我寻月下人不归
我寻月下人不归 2020-12-15 06:56

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

5条回答
  •  爱一瞬间的悲伤
    2020-12-15 07:38

    You might want to check out using ClickableSpan and attach the TextView to a LinkMovementMethod and override its onTouchEvent etc....

    Hope that helps

提交回复
热议问题