Textview Inside The Adapter Not Update
I'm trying to update a text in a TextView inside the Adapter. The text visually not being displayed even using notifyDataSetChanged (). Use other visuals enable the party goes smoo
Solution 1:
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();
}
});
Post a Comment for "Textview Inside The Adapter Not Update"