Skip to main content
Active reading [<https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s> <https://www.youtube.com/watch?v=1Dax90QyXgI&t=19m05s>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Use the below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 

Use below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 

Use the below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 
deleted 120 characters in body
Source Link
Phuc Tran
  • 8.1k
  • 1
  • 42
  • 28

Use below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 

That what I got it working from here

Use below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 

That what I got it working from here

Use below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 
Source Link
Phuc Tran
  • 8.1k
  • 1
  • 42
  • 28

Use below code:

String html = "<a href=\"http://yourdomain.com\">Your Domain Name</a>" TextView textview = (TextView) findViewById(R.id.your_textview_id); textview.setMovementMethod(LinkMovementMethod.getInstance()); textview.setText(Html.fromHtml(html)); 

That what I got it working from here