Skip to content Skip to sidebar Skip to footer

What Is Best Way To Implement Viewholder Design Pattern

These days I am more dealing with a custom ListView and custom GridView. I use the ViewHolder class for smooth scrolling. But there is something weird I have noticed. Items keep re

Solution 1:

publicstatic ImageView image;
 publicstatic TextView title;

is wrong. They should be

public ImageView image;
public TextView title;

without static . This should fix your issue. You can read more about static keyword here

Post a Comment for "What Is Best Way To Implement Viewholder Design Pattern"