There are similar questions on stackoverflow, however they answer the question of "how to highlight onclick" not ontouch
Is there a way to (for example) set background color of the clickablespan ontouch?
There are similar questions on stackoverflow, however they answer the question of "how to highlight onclick" not ontouch
Is there a way to (for example) set background color of the clickablespan ontouch?
You can achieve this by following the patters of touches on the device--- Capture the touch event coordinates. Define range-wise behaviour as per your layout. CAUTION: Capturing touch-event may take a lot of CPU usage! Please be SURE if you really want this kind of implementation in your app.
For highlighting you can not change the background of ClickableSpan but you can change the Text color and Style to make bold or Italic to highlight.
<string name = "descMsg">Tap <FONT COLOR=\"#E22882\">"<i>here</i></FONT> to launch the app.</string>
You can use this in string.xml with HTML tag.
Hope this will help you..:)