onclicklistener textView in android -


I have a TextView with two different colors if I mini < / Em>, then I have to redirect to an activity, if I redirect the metro to another activity. How can I get it?

  TextView t = (TextView) v.findViewById (R.id.text); String text = "& lt; font color = # 000000> & lt; b & gt;" + "Mini" + "  font color = # 000000> added & lt; / font & gt; & lt; font color = # 1569C7> "+" Metro "+" & lt; / font & gt; & lt; font color = # 000000 & gt; as favorite. & Lt; / font & gt; "; T.setText (Html.fromHtml (text));    

What you can do is create a custom class which is ClickableSpan And manage my clickable text I answered the same.

Comments