In my app
Table rows are there as I touch to any row I want to give some color to particular row which is selected.
The rest of the element should have the original color to it.
I have used onTouchlisterner but it’s nt working as expected.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just create rowbackground.xml in drawable for having two state for background image (normal and clicked state).
For that follow this link
http://www.gersic.com/blog.php?id=56
Then give it as background resource for your rows you are creating.
Also you can have onclick listener for all rows ,just give tag or id as unique one for each row.