ListView Changing Items During Scroll

后端 未结 5 447
野性不改
野性不改 2021-01-13 15:05

I am implementing a ListFragment using a custom ArrayAdapter to populate the list. Each row item has an ImageView and three TextViews. Data is being parsed via XML and the i

5条回答
  •  孤独总比滥情好
    2021-01-13 15:40

    I found the solution thanks to @frozenkoi. Ended up being the static variables inside the ViewHolder causing problems. They are now simply public and the class is static and the issue has been solved.

    private static class MyViewHolder {
        public TextView adTitle;
        public TextView region;
        public TextView time;
        public ImageView thumbnail;
    }
    

提交回复
热议问题