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"
精彩评论