I have a table with some rows having a textview and imageview.I am changing the background of row on click using a selector drawable.I also need to change the color of text and the imageview image on click.I tried using selector for textview as explained in here
The color of the textview needs to be changed on click of the parent table row not on the click of the textview.The changed color should not persist.It should be just an indication of the selected row click
but it doesn’t seem to work.Any help would be appreciated
Set OnTouchListener for Table row as in android TextView : Change Text Color on click
In the ontouch event get the textview child from the row and change its color ..