I have created Text View dynamically.I have to set focus/highlight the particular text when i click on that Text View.please suggest me how to do this?
I have created Text View dynamically.I have to set focus/highlight the particular text when
Share
You could set a listener to control the desired behavior on the “click” event. Something like this:
If you want to deselect the selected
TextViewwhen you click in a new one, just change the background colors of the preciously selectedTextView.Android
TextView‘s API here.Hope it helps 😀