I have a problem with List View in Android?


I have list view which contains 2 buttons and 2 textviews. I change the text of button on Click event. but when I scroll the listview the text of button is changed. How to overcome this problem?

example. [text1][text2][button hide][button2]---> this is my list view item

when I click "button hide" the text of button is change to ""button unhide" this is similar for all items in listview

when I scroll the list view the text of button change to "button hide"

so, how should I overcome this problem?

You are probably having problem with reusing views. Please provide some code so we can point it out. Generally refer to: Toggle button in a list view loose their state when scrolled of screen in Android