开发者

hyperlink a url in android

I have a text in an view in android.I want that my url should开发者_StackOverflow be hyperlighted and It should have different color other that background color..Can anyone tell,Whats the procedure? Thanks in advance

Regards Tushar


Put an autolink attribue on your text field:

<TextView android:id="@+id/TweetTextView"
              android:autoLink="web"

See the docs for all options.


Change color of Hyperlink in AlertDialog

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜