Weblink or Hyperlink in textview, simple way to make it:
Textview tv_link= (Textview)findViewById(R.id.tvLink);
tv_link.setText("prandroid@gmail.com");
Linkify.addLinks(tv_link, Linkify.ALL);
or may be use this also:
next alternative method is:
Textview tv_link= (Textview)findViewById(R.id.tvLink);
tv_link.setText("prandroid@gmail.com");
Linkify.addLinks(tv_link, Linkify.ALL);
or may be use this also:
TextView tvLinkTest= (TextView) findViewById(R.id.tl);
tvLinkTest.setMovementMethod(LinkMovementMethod.getInstance());
next alternative method is:
<TextView
android:text="www.hello.com"
android:id="@+id/TextView01"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:autoLink="web">
</TextView>
Happy Coding!!!