I have dynamic listview in which textview and edittext are two columns. The textview comes with proper data but when i insert the value in edittext in first row then i scroll down the list and in third row the edittext is fill with the first row edittext value. I don’t know why this happening. Please help me.
I have dynamic listview in which textview and edittext are two columns. The textview
Share
Please provide some code so we can better understand the problem. From what i understand this is whats happening.
The adapter generates as many views as can be accomodated on the screen. When you scroll down the list, a new item needs to be generated. This can be done in two ways inside the getView() method shown below.
convertView is the view that just went off the screen and is available for recycling. In your case its the convertView which was supposed to be destroyed but is reused again. So the edit text values reappear in the view below.