How to make different span count at different row in recycler view

In this blog, We have shown you how to make custom layout manager to make the different span count at the different row in recycler view.

Here, we will show the 2,2,4,4 span count on different columns.

Different span count at different row

Step 1: make custom adapter,

Step 2: apply to the recycler view,

 

 

 

. . .

Comment (1)

Add Your Comment

  • Shubham Agarwal
    Nice blog thanks for sharing
  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close