TextView txt = (TextView)findViewById(R.id.txt);

txt.setLinksClickable(true);

txt.setMovementMethod(LinkMovementMethod.getInstance());

String urlNaver = "<a href='http://www.naver.com'>네 이 버</a><br>";

String urlGoogle = "<a href='http://www.google.com'>구 글</a>";


txt.setText(Html.fromHtml(urlNaver));

txt.append(Html.fromHtml(urlGoogle));




+ Recent posts