开发者

How can I make certain words clickable in a TextView?

I am building a twitt开发者_如何学Goer-like client. Assume I have a string:

"$AAPL rocks!"

I want to be able to click on "$AAPL" and do something.

How can I go about making $ clickable in a TextView?


Linkify should be what you are looking for.

UPDATE: You can implement your own URI and have your application listen for that Intent calls.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜