Questions tagged [staggeredgridlayout]
99 questions
1
vote
1 answer
Attempt to read from field StaggeredGridLayoutManager$Span.mIndex on a null object reference
I'm using RecyclerView with StaggeredGridLayoutManager on a Dialog Fragment. It's called SearchFragment.
My problem is when i change the data (making other query for getting other data from server) i got a huge empty space on top between item 0 and…

Long Đình
- 31
- 1
- 8
1
vote
1 answer
How to add headerview to recyclerview with staggeredGridLayoutManager
I want add a headerview like listview into recyclerview with staggeredGridLayoutManager. I have search all library and only found this one RecyclerHeaderView but this library have limitation for LinearLayoutManager or GridLayoutManager. Is possible…

wanz
- 302
- 1
- 5
- 17
1
vote
1 answer
Autofit Staggered GridLayoutManager
I have the same question as is in this post:RecyclerView GridLayoutManager: how to auto-detect span count?
but for the Staggered GridLayoutManager. I tried to edit the code from this very good answer:
public class StaggeredGridAutofitLayoutManager…

Tomas
- 4,652
- 6
- 31
- 37
1
vote
1 answer
Scrolling and readjusting items in StaggeredGridLayout
In my app I want to use StaggeredGridLKayout in the main fragment. However, when I add a new item and notify adapter of new items:
@Override
public void onSaveSuccess() {
getLoaderManager().restartLoader(0, null, this);
…

hubert
- 923
- 2
- 9
- 18
1
vote
0 answers
Why CardView will adjust position automatically when scrolling
I am using RecyclerView and CardView in my project, most parameters of these two widget were default, I haven't customize it much, but two questions came up.
Why those CardViews will flash one second when pull down to refresh data which is using…

KNOX.C
- 323
- 1
- 2
- 11
1
vote
2 answers
StaggeredGridLayoutManager with CardView doesnt fit item measure
I'm trying to use the StaggeredGridLayoutManager with CardView from android.support.v7.widget (v22).
This is my item's layout:

GPack
- 2,494
- 4
- 19
- 50
1
vote
0 answers
TwoWayView StaggeredGridLayoutManager not working with StickyHeaders
I am using TwoWayView with StaggeredGridLayoutManager to create grid same with Pinterest app.
Also I need to implement StickyHeaders in this view. For headers I'm using eowise/recyclerview-stickyheaders like item decoration. The problem is: when…

Vitaliy Shuba
- 11
- 2
0
votes
0 answers
How to retain the order of items in Staggered Grid Layout on scrolling up?
I'm using StaggeredGridLayout in my recycler view. After scrolling down for sometime, if I scroll up, the cards are not arranged in the same order as before. Is it possible to somehow fill the cards in the same order?

Arun Joseph
- 2,736
- 25
- 35
0
votes
0 answers
How to remove padding in RecyclerView when using StaggeredGridLayoutManager?
When I scroll the elements down and then back up, the elements get mixed up and there's a weird padding.
I tried to set the gap strategy to GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS, but then the paddings from the ItemDecoration are displayed…

JkFinger
- 3
- 2
0
votes
1 answer
HetrogenousImagesLayout/AsymmetricGridView using Flutter GridView
How to make a design like this using Flutter GridView
Please help

SemiColon
- 111
- 1
- 4
0
votes
2 answers
Retrieving images from firebase into a StaggeredGridLayout Android
I'm trying to get images from firebase into a StaggeredGridLayout which is a fragment but getting some errors that i can't resolve
error: incompatible types: cannot infer type arguments for ArrayList<>
postItem = new ArrayList<>();
^
reason: no…
user15537898
0
votes
1 answer
How to control left and right handed layout placement in an Android RecyclerView
I have a left handed and right handed layout which need to be placed in the appropriate column in a RecyclerView. I'm using a StaggeredGridLayout as the layouts can be of different sizes as well. I'm trying to control the placement of the child…

JohnK
- 1
- 2
0
votes
0 answers
Wrong item layout direction in StaggeredGridLayoutManager unsing RecyclerView Android
I am facing issues while placing items in staggered view vertically with span count 2. if the item count is 3 and first item height is greater, third item is aligning to right(4th place)leaving 3rd item empty.
0
votes
1 answer
How to make the first row of RecyclerView contains custom number of items?
What I want to reach at the end, a view like this image, Click me
I have RecyclerView and I am using GridLayoutManager.
I want to have 5 items of the list in the first row.
The rest of the rows should contain 6 items per each row.
Items in the…
0
votes
1 answer
Staggered Grid Layout used to load the images from Real time database not showing
I have created a Staggered Grid Layout to load the images from Firebase but it is not working properly.
Loaded the images using picasso and used realtime database to read the items...
Showing no error in the Log cat when I use the Log.
Still shows…

Random weins
- 1
- 2