Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [staggeredgridlayoutmanager]

The tag has no usage guidance.

staggeredgridlayoutmanager
-1 votes
1 answer
40 views

Switching between list view and grid view in android efficiently with smooth transition

I am trying to achieve a view switch that enables user to switch between "List view" and "Grid view" in Android. However, I have achieved this but I am not satisfied with results ...
Devarshi Rawal's user avatar
0 votes
0 answers
38 views

Changing LinearLayoutManager to StaggeredGridLayoutManager causing index out of bound error

if (parentMode.type.equals("list", true)) { with(binding.parentRV) { val fifteenDp = Dimension.convertDpToPixels(15f, binding.root.context) layoutManager = ...
Developer's user avatar
1 vote
0 answers
90 views

Android. StaggeredGridLayoutManager gapStrategy makes View invisible

I use a RecyclerView to show 2 column layout with some items as sections, using the full width. This is how I am setting up my RecyclerView: fun bindRV() { val layoutManager = ...
Rafael's user avatar
  • 11
1 vote
1 answer
48 views

data in reverse sort order in FirestoreRecyclerAdapter using StaggeredGridLayoutManager?

I am using Firebase as a backend for my notes making Android application and using "FirestoreRecyclerAdapter" for fetching the data from it. I want that data in reverse sorted order. How ...
Sanskar Jain's user avatar
1 vote
0 answers
87 views

Items get reshuffled on scrolling when using StaggeredGridLayoutManager

I'm using StaggeredGridLayoutManager with recylerview and passing a list of images in adapter. When I scroll down and then up, the order of image items gets shuffled. I googled and went through ...
Khudeja's user avatar
  • 11
0 votes
0 answers
149 views

How to use recyclerview:1.2.0-alpha02 for saving and restoring recyclerview position

I'm searching on how can I save and restore the recycler view position for my app (never tried to implement saving and restoring the position of recycler view) and after seeing many different ways to ...
Vasant Raval's user avatar
3 votes
1 answer
2k views

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 ...
Vasant Raval's user avatar
0 votes
1 answer
536 views

Pagination not working with staggered grid layout android

Hello im trying to include pagination in my recylerview but dont know why it is not working with staggeredgrid layout this the question im searching for and becuase the answer are for ...
Vasant Raval's user avatar
0 votes
1 answer
223 views

HetrogenousImagesLayout/AsymmetricGridView using Flutter GridView

How to make a design like this using Flutter GridView Please help
SemiColon's user avatar
  • 121
2 votes
1 answer
484 views

Android. StaggeredGridLayoutManager places the cells in the wrong position

I use a recyclerView with StaggeredGridLayoutManager. I have two columns, cells in columns can be of different heights. The items are positioned fine, however on some devices I noticed the following ...
testivanivan's user avatar
  • 1,328
3 votes
2 answers
486 views

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. ...
anna's user avatar
  • 433
0 votes
0 answers
348 views

StaggeredGridLayoutManager strange effect when list scrolled

I have to implement a list of images like pinterest's one (a grid with asymmetrical rows), and i have used StaggeredGridLayoutManager in this way in my fragment: ScenarioFragment scenarioAdapter = ...
giordy16's user avatar
  • 347
2 votes
0 answers
123 views

Recyclerview with StaggeredGridLayoutManager is not closing gaps at the bottom

I have implemented a simple recyclerview with StaggeredGridLayoutManager as follows: activity_main.xml <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android....
Davi's user avatar
  • 1,071
4 votes
2 answers
1k views

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 ...
Hadi Ahmadi's user avatar
  • 1,904
0 votes
2 answers
258 views

Problem not visible item in Honor 6x (Recyclerview with StaggeredGridLayoutManager)

I am using Recyclerview whose layer is StaggeredGridLayoutManager. The problem is that in most phones the items are displayed but in Honor 6x phones the items are not displayed but they can be clicked....
Mohamad Hasan Salmaaniyaan's user avatar

15 30 50 per page