Questions tagged [staggered-gridview]

An Android staggered grid view which supports multiple columns with rows of varying sizes.

An Android staggered gridView which supports multiple columns with rows of varying sizes.

The StaggeredGridView was developed due to requirements for the Etsy app not met by any existing Android libraries. Namely a stable implementation with the ability to have a different number of columns in landscape & portrait, to sync grid position across orientation changes and support for headers & footers.

The most famous example of a staggered gridview is probably the one from etsy: https://github.com/etsy/AndroidStaggeredGrid

168 questions
5
votes
0 answers

Android 5.0, how to scroll grid to a fixed position using Etsy StaggeredGridView

i've been working with Etsy's StaggeredGridView for a while, and i'm quite happy with it, but now i have a problem which i am not able to solve. I need to scroll to a fixed position (in pixels or in adapter position) within the list and i am using…
Hugo
  • 1,572
  • 15
  • 32
5
votes
0 answers

Android Staggered/Multi-line Linear Layout?

For my app, I'm trying to have a section listing the tags in an article but I wasn't able to find an Android Layout that can achieve this. Basically, I have an array of strings which contains anywhere from 1 to 5 elements. I want to be able to list…
5
votes
0 answers

Android StaggeredGridView inside ListView height

When i place StaggeredGridView in ListView item its height becomes zero. I tried to modify onMeasure like in this answer, but it has no effect. Modified StaggeredGridView: public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int…
Pavel M.
  • 263
  • 1
  • 9
5
votes
2 answers

How to use PullToRefresh in StaggeredGridView?

I am using Staggeredgridview in my Project. I've downloaded StaggeredGridView library and demo from here: https://github.com/maurycyw/StaggeredGridViewDemo https://github.com/maurycyw/StaggeredGridView I need to PullToRefresh for that entire…
Gioan Doan
  • 112
  • 8
4
votes
1 answer

Jumbled tiles in itemTouchHelperCallback in StaggeredGridLayoutManager

I am using StaggeredGridLayoutManager in my code. Take a look at this first: I am facing these problems: In 1st attempt, I move the tile '1' directly upwards by one step and then stop. Everything looks good and the tile labled as '1' replaces…
4
votes
1 answer

How to set android staggered horizontal recycler view with dynamic span count

I need this kind of recycler view. But when I use horizontal staggered view, I have to define the row count. I need to solve these problems below. There should not be a horizontal scroll bar or scroll view. when the first row is filled, the view…
4
votes
2 answers

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…
4
votes
3 answers

StaggeredLayout with FlexboxLayoutManager

I there any way to implement a staggered layout using google's Flexbox library similar to this The above layout is created using StaggeredLayoutManger also maintaining the aspect ratio of the image I have tried the code: recyclerView.apply { …
4
votes
0 answers

Can staggered manage view based on the content's width and scroll as vertical?

I am using staggered view to create view tag which will contain text-view but I am facing a problem to manage my content If I am using Staggered Horizontal Manager this is managing my tags based on content's width as I want but the scrollable is…
Abdul Rizwan
  • 3,293
  • 27
  • 30
4
votes
2 answers

StaggeredGridView changing item sizes on scroll

I have run into this problem Am using a staggered grid view and it has a combination of two columns and single columns..Something like this everything works fine, until i scroll up and down a few times and it randomly changes to something like…
Veeru
  • 4,814
  • 2
  • 39
  • 60
4
votes
3 answers

Android - StaggeredGrid wrong items disposition

I have a problem with my Recycler view and StaggeredGrid which cut the width by 2. I load images into items with Picasso and when I load image first time, they are disposed strangely in the recycler view. After reloading, everything seems good. I…
Okn
  • 668
  • 10
  • 20
4
votes
3 answers

How to reflow items in a RecyclerView with the StaggeredGridLayoutManager

I'm playing around with the StaggeredGridLayoutManager and have something close to what I want. I have a horizontal staggered grid with 2 rows, where some items are the height of 1 row, and others span both rows. I want the single row height items…
Niraj
  • 4,810
  • 2
  • 10
  • 18
3
votes
1 answer

Android Studio: Unable to find explicit activity class but activity already declared in AndroidManifest.xml

New to Android Studio here. I am trying to make it so when I click on an image from a ViewHolder in a RecyclerView, it would open up another activity that opens up another layout. However, I am getting this error even though I already declared the…
CLORO
  • 29
  • 6
3
votes
2 answers

Display tag like structure in Staggered Recyclerview

I am working on a tag structure currently and to display that I have used Staggeredgrid layout manager of Recyclerview to get the required result as below image: But when I used StaggeredGrid, It is providing result as below: My code to display…
3
votes
1 answer

Scrolling makes Gap in Staggered Gridview

There is a Gap issue with my Staggered Gridview layout with scrolling. I am using pagination in this gridview. If i scroll continues up and down and then after i scrolls top a gap on there. Activity Code staggeredGridLayoutManager = new…
Rose
  • 176
  • 1
  • 1
  • 9
1
2
3
11 12