开发者

android pass onClick event to child

开发者 https://www.devze.com 2023-02-10 02:06 出处:网络
I have a button and as a background, I have an image selector which reacts on press 开发者_JS百科event. The button\'s text is a spannable string which may contain some links or phone numbers. I linkif

I have a button and as a background, I have an image selector which reacts on press 开发者_JS百科event. The button's text is a spannable string which may contain some links or phone numbers. I linkify those links and phone numbers but how to pass further onClick event to button's text to open browser when I tap over a link?


The button is not designed to work that way. I would use a text view and manipulate background, so when the user cliks on the link the background changes and with some delay changes back and only then open the web link.

0

精彩评论

暂无评论...
验证码 换一张
取 消