Make a hyperlink textview in android

TextView textView =(TextView)findViewById(R.id.textView);
textView.setClickable(true);
textView.setMovementMethod(LinkMovementMethod.getInstance());
String text = "<a href='http://www.google.com'> Google </a>";
textView.setText(Html.fromHtml(text));

Deixe uma resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *