How to avoid refreshing of cells on when calling notifyDataSetChanged() for PinterestLikeAdapterView?

前端 未结 4 1437
北恋
北恋 2021-01-05 11:36

Background

I\'m using the PinterestLikeAdapterView library to show some images from the internet, which is like a gridView but with different height for each cell.

4条回答
  •  孤独总比滥情好
    2021-01-05 11:58

    There is a very good example on PinterestLikeListView in GitHub

    Here is the library StaggeredGridView

    A modified version of Android's experimental StaggeredGridView. Includes own OnItemClickListener and OnItemLongClickListener, selector, and fixed position restore.

    You can get library project here library

    and you can get Demo project Here

    This is very good open source project, so you can use instead of PinterestLikeAdapterView

    enter image description here

    Hope this library is going to help you out.

提交回复
热议问题