• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ListView with a Text and a Button.

shiva01

Lurker
I have a Layout with a spinner and a ListView.

ListView- Each row has a text and couple of buttons. ( CustomAdapter)

On click on any of those buttons, I need to know the text in that row.

For example: Each row has a question with buttons Yes or No. On click of buttons Yes/No, I need to find the corresponding question.

How do I do it?


Thanks
 
Did setTag to the button control with the text being displayed. getTag() onClick of the button gives the text.

Resolved.


Thanks.
 
Back
Top Bottom