No good example about RecyclerView and StaggeredGridLayoutManager in Android Docs

前端 未结 3 557
难免孤独
难免孤独 2020-11-27 14:20

I couldn\'t find any better example for using RecyclerView with StaggeredGridLayoutManager. Not even in Android Docs.

Q

3条回答
  •  隐瞒了意图╮
    2020-11-27 14:55

    Our friends "Henry" have a good and simple explain here.

    And I think below constructor is suitable for most uses :

    StaggeredGridLayoutManager(num , LinearLayoutManager.VERTICAL)
    // where 'num' is your columns count
    // LinearLayoutManager.VERTICAL = 1
    

提交回复
热议问题