Astrit Veliu
Astrit Veliu

Reputation: 1572

Staggered horizontal Recyclerview Android, help needed

Custom recyclerview layout manager

What I'm trying to achieve is to create a RecyclerView which scrolls horizontally, and the items should appear in different sizes similar to the drawing started from 0 position and so on. What i have tried so far is:

  1. played with position of items on adapter onBindViewHolder, but that's not a solution and it doesn't solve my problem.
  2. implemented StaggeredGridLayoutManager as layout manager StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.HORIZONTAL);, but the spanCount blocks me.
  3. GridLayoutManager scrolls vertically, not horizontal

Is there any lib or guidelines on how to design a specific RecyclerView Layout Manager ? Any help would be appreciated, thanks!

Upvotes: 0

Views: 1329

Answers (1)

chand mohd
chand mohd

Reputation: 2550

Google lib can help you to achieve Staggered horizontal Recyclerview

Upvotes: 2

Related Questions