I want to use a StaggeredGridLayoutManager to have a vertical list with two columns and each row has 3 parts. What exactly should I do?
Work With StaggeredGridLayotManager?
972 Views Asked by abolfazl fakhari At
2
There are 2 best solutions below
0

suppose you want to attach it to a recyclerview, you can add add like this
StaggeredGridLayoutManager staggeredGridLayoutManager=new
StaggeredGridLayoutManager(2,StaggeredGridLayoutManager.VERTICAL);
recyclerView.setLayoutManager(staggeredGridLayoutManager);
where recyclerView is the RecyclerView
object
try this to use
StaggeredGridLayotManager
here is the tutorial link working with StaggeredGridLayotManager