开发者

How to create a web link - after click browser opens

开发者 https://www.devze.com 2022-12-21 16:09 出处:网络
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 easie

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

精彩评论

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