Questions tagged [staggeredgridlayoutmanager]
53 questions
4
votes
2 answers
RecyclerView with StaggeredGridLayoutManager in ViewPager, arranges items automatically when going back to fragment
I am using Navigation component in my App, using google Advanced Sample(here).
my problem is when going back to a fragment, the scrolling position does not lost but it rearranges items and moves highest visible items so that top of those item align…

Hadi Ahmadi
- 1,924
- 2
- 17
- 38
4
votes
0 answers
Prevent pictures from moving with StaggeredGridLayoutManager
I have the same issue as this post.
http://i.imgur.com/FUapm2K.gif?1
StaggeredGridLayoutManager and moving items
However i can't understand the answer, here is the method i am calling inside the OnBindViewHolder() method of my adapter.
private void…

Tom3652
- 2,540
- 3
- 19
- 45
4
votes
2 answers
How to display images in recycler view with different sizes
i want to display images in Recycler View
You can see images have no fixed height and width. just randomly shown in different sizes.
i have considered StaggeredLayoutManager for recyclerview but the problem with that we have to show vertically or…
user8873209
3
votes
1 answer
How to implement endless scroll (pagination) in recyclerview with StaggeredGridLayoutManager
Hello there I have a recyclerview with images loaded from firebase I want to implement endless scroll but the issue I'm getting is with StaggeredGridLayoutManager and I have to use it I cant replace it with grid-layout
Note:- I have seen other…

Vasant Raval
- 257
- 1
- 12
- 31
3
votes
2 answers
Android. StaggeredGridLayoutManager determine span index
I use a recycleView with StaggeredGridLayoutManager (number Of column is 3). I need to determine in which column the current cell is located (by position). Is it possible to do this? Please help me.
Note: the height of my cells is different (square…

anna
- 433
- 7
- 18
3
votes
1 answer
Android how can I achieve a arrow based layout?
I want to know how is possible to achieve a arrow-based layout like this :
Any idea about what Layout is using this app in order to achieve that layout ? It seems like a kind of Staggered Grid Layout maybe ? Or maybe is using a library or a…

Nexussim Lements
- 535
- 1
- 15
- 47
3
votes
1 answer
RecyclerView with StaggeredGridLayoutManager : variable number of columns and vertically scrollable
I want to show a list of strings, this list has to be vertically scrollable, and for each row a variable number of columns, this column with will depend on the string with. So it will be a grid vertically scrollable.
So Graphically I want to…

ziniestro
- 686
- 1
- 11
- 24
3
votes
1 answer
Staggered Grid Layout Manager that works in both orientations
What I'm trying to do:
I'm trying to create a staggered grid layout that takes items with varying width and height. The layout dynamically moves items around so they don't overlap.
What I have tried:
I looked into using the default…

Matthew Steinhardt
- 322
- 4
- 17
3
votes
3 answers
Change column span count of StaggeredGridLayout dynamically based on item position
I would like to achieve this layout for (n) items list:
So far now I'm able to display the items in two columns but how can I merge two columns in one for specific position (i.e as item 7)?
I have tried many solution provided at SO and also other…

Muahmmad Tayyib
- 689
- 11
- 28
3
votes
0 answers
Firebase RecyclerView with StaggeredGridLayoutManager
I'm developing an app that will display images on RecyclerView by means of Firebase-UI RecyclerView
The problem is that when I use StaggeredGridLayoutManager in my RecyclerView there appears very long vertical gaps between horizontal items…

Tarlan
- 76
- 6
3
votes
2 answers
How to set ImageView height and width before image is loaded with Picasso inside Recycerview StaggeredGridLayout
I am looking to set the ImageView height before loading the image with Picasso. Trying to prevent the parent view from changing its height to the image. I am getting a height and width of the image and setting it inside of of Picasso and then…

Eugene H
- 3,520
- 3
- 22
- 39
2
votes
0 answers
Recyclerview with StaggeredGridLayoutManager is not closing gaps at the bottom
I have implemented a simple recyclerview with StaggeredGridLayoutManager as follows:
activity_main.xml

Davi
- 1,031
- 12
- 21
2
votes
1 answer
Android Staggered Grdiv View last element full screen if standalone
I have the following recycler view with Staggered Grid Layout Manager:
I would like to adapt each item of the staggered grid view like this (the last element full-screen if its stand alone) :
Main.java:
staggeredGridLayoutManager = new…

Nexussim Lements
- 535
- 1
- 15
- 47
2
votes
0 answers
Android - Recyclerview blank when reopening app after keeping it in background for long
I have the following app structure :
- Activity (ViewPager tabs)
- Fragment A -> Recyclerview with StaggeredGridLayoutManager
- Fragment B -> Recyclerview with GridLayoutManager
The issue : After opening app after keeping it in background…

Shrey Garg
- 1,317
- 1
- 7
- 17
2
votes
0 answers
StaggeredGridLayoutManager item arrangement
I am implementing below list using RecyvlerView. I have done it using StaggeredGridLayoutManager
.
NOTE: This screenshot is with GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS
Every thing works fine, but the issue is with order of item arrangement, it's…

Jaiprakash Soni
- 4,100
- 5
- 36
- 67