开发者

hyperlink a url in android

开发者 https://www.devze.com 2023-02-09 08:36 出处:网络
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?

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

精彩评论

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

关注公众号