I\'m trying to update a text in a TextView
inside the Adapter. The text visually not being displayed even using notifyDataSetChanged ()
. Use other visu
You should be updating your backing data model as that is what is used to refresh the list view when you call notifyDataSetChanged()
:
holder.llLike.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
qa.setUp_count(qa.getUp_count() + 1);
notifyDataSetChanged();
}
});