android,android-textview,linkmovementmethod
Thank you for asking this question, I think I may have a solution for you. Check out the code in https://gist.github.com/qtyq/90f9b4894069a8b3676c It is a factory helper class for a SpannableString which allows you to easily create a SpannableString by: passing the original String into the static init(String s) method calling...
android,android-textview,onclicklistener,spanned,linkmovementmethod
remove this code textView.setMovementMethod(LinkMovementMethod.getInstance()); and manually add the following a link textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // Handle click Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); startActivity(intent); } }); ...