How To Preserve Edittext Value In Custom Cursor Adapter
After applying almost all answers from stack overflow on same topic but i can not find solution for my problem. my problem is i have a list view which contain a question and a edit
Solution 1:
I imagine the issue lies in this line:
text = String.format(viewHolder.que, "synonyms", word.toLowerCase());
The reason I say this is because you're referencing the ViewHolder to get the value of the text. Since the ViewHolder recycles, the value of your text will recycle too.
Try getting the value of the text directly from the cursor without intervention from the ViewHolder.
Post a Comment for "How To Preserve Edittext Value In Custom Cursor Adapter"