Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
  2.  
  3. textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
  4. textView.setMovementMethod(LinkMovementMethod.getInstance());
  5.  
  6. textView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
  7. textView.setAutoLinkMask(Linkify.WEB_URLS);
  8. textView.setLinksClickable(true);
  9.  
  10. <TextView
  11. android:id="@+id/txtview"
  12. android:autoLink="web"
  13. android:linksClickable="true"
  14. />
  15.  
  16. textView.setMovementMethod(LinkMovementMethod.getInstance());
  17.  
  18. xtView.setText(Html.fromHtml("<a href="http://www.google.com">This is a link</a>"));
  19. textView.setMovementMethod(LinkMovementMethod.getInstance());
  20.  
  21. textView.setAutoLinkMask(Linkify.WEB_URLS);
  22.  
  23. <TextView
  24. android:id="@+id/txtview"
  25. android:autoLink="web"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement