开发者

How to create a web link - after click browser opens

I need to create a simple link in my Android app. Let's say that it would display text "Google" and after us开发者_运维技巧er clicks on it, http://google.com opens in web browser. What is the easiest way to do this? The link should change color whhen it's in pressed state.


The android library provides Linkify for this requirement.


Try this example http://jtomlinson.blogspot.in/2010/03/textview-and-html.html

and for changing color android:textColorLink="@android:color/white"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜