Android Set Color And Listner On Part Of Text
Suppose I have TextView and I want to change color of some part in it. Like this And I must set OnclickListener on text ' Terms Of Use ', so How can I do that but using two textVi
Solution 1:
Use a simple Checkbox with no text, and for text clicking event this is what you are looking for Spannable
Solution 2:
You can youse HTML in TextView:
myTextView.setText(Html.fromHtml("<h2>Test</h2>"));
Post a Comment for "Android Set Color And Listner On Part Of Text"