0

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

Regards Tushar

1
  • @Tushar can you please give more details , which view you are using? whether the text is entered by user or are you setting to display? Commented Feb 8, 2011 at 7:24

2 Answers 2

2

Put an autolink attribue on your text field:

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

See the docs for all options.

Sign up to request clarification or add additional context in comments.

Comments

0

Change color of Hyperlink in AlertDialog

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.