Showing posts with label tablerow. Show all posts
Showing posts with label tablerow. Show all posts

Friday, January 20, 2012

Android: Selector isn"t working as expected in TableRow selection


I have a TAbleLayout in my XML with 1 row i.e. te headings row. Other all rows, I add dynamically. I want to make a row selected on clicking it & on touching it. I added clickListener to each row and am able to trap click event. But when the mouse is pressed or kept pressed, I see color change, then again it comes to normal color. I want the color to stay changed until I click other row or click somewhere else to deactivate the selected row.