What is best way to implement Viewholder design pattern.
问题 Before you downvote kindly read I have seen already asked questions. Many problem doesn't match with them. 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 repeating when I scroll down the list or gridView when I implement ViewHolder , as it is recommended in Android guides. But when I initialize views out of it, items don't repeat. Tell me how I can make this