Images are repeating in ListView

后端 未结 6 1622
遥遥无期
遥遥无期 2020-12-15 12:49

I have implemented android app which should download images from server and display them in ListView, but very interesting thing occures while images are downloading

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 13:11

    instead of using the convertview object create a new view each time.

    View localView = ((LayoutInflater)parentscreen.getSystemService("layout_inflater")).inflate(R.layout.activity_list_row, null);
    

    By inflating as above.

提交回复
热议问题