Questions tagged [staggeredgridlayout]

99 questions
1
vote
1 answer

Staggered LayoutManager showing images in only one column

I am setting images and video from local phone storage to recyclerview with Staggered LayoutManager with kotlin. Every thing is fine but on first launch recyclerview shows all images and video in only one column(on right side only) , Everything is…
1
vote
1 answer

StaggeredLayoutManager disturbs positions of cells during adjustment in RecyclerView

StaggeredLayoutManager sometimes makes cells position disordered during scroll when trying to adjust them. I've a HeaderView and NormalViews in my RecyclerView. Following is the setup code: int spacing = (int)…
1
vote
1 answer

Adding Horizontal full screen card in staggered grid layout in android

I know how to use staggered grid layout, but this layout design is beyond me. Can anyone tell me how to achieve this layout design? I have done layout design like this before. But the desired layout is like this. The problem is the 4th card can't…
1
vote
0 answers

Dynamic width item in recyclerview Android

i want to make dynamic width items in recyclerview as shown in below image. I'd tried a lot for finding solution but i didn't found any perfect solution. i found solution that we can create dynamic size items using StaggeredGridLayout but as i…
1
vote
0 answers

Recyclerview as an item of recyclerview

I have two recyclerviews, both of them are vertical. These two have seperate adapters and outer one is grid layout manager. On the other hand, inner recyclerview has staggered layout manager. Inner recyclerview never scrolls because of its parent…
1
vote
1 answer

Items doesn't fill space

I have a RecyclerView. When you look at the picture, I have the Problem, that the Items of the RecyclerView won't fill the full space of the screen. (I mean the space between the item_note and the screen edge... Here is my…
marcelo
  • 19
  • 3
1
vote
1 answer

Staggered Grid Layout behavior issue

I`m new in Android. Could somebody help with "strange" StaggeredGridLayout behavior. GIFs attached below: first_example_StaggeredGridLayout_behavior.gif second_example_StaggeredGridLayout_behavior.gif My recycler init code: val layoutManager =…
1
vote
0 answers

Dynamic Image grid arrangement in Android

I'm working on an app that receives random amount of images and should show them to the user in a grid. Grid cells depends on the amount of Images. Max is 5. Something like what Facebook does: Notice how the grid changes based on the image…
John
  • 410
  • 1
  • 4
  • 19
1
vote
1 answer

StaggeredGridLayoutManager with recyclerview showing only two images per page

I have taken sample code from https://github.com/chrisbanes/cheesesquare as base to show images in StaggeredGridLayoutManager. StaggeredGridLayoutManager with recyclerview showing only two images per page. I tried almost all ways to show multiple…
Krishan
  • 407
  • 4
  • 13
1
vote
1 answer

RecyclerView/StaggeredGridLayoutManager: Force group of consecutive views into the same span/column

Currently, I'm using a RecyclerView to display a set of views with different view types, where a group of consecutive items belongs together: a header, a variable set of content items, and a separator/footer. Now I also want my UI to look good on…
1
vote
1 answer

Image height stretched (SimpleDraweeView)

Recently I'm playing around with some popular android libs, and I need a help with StaggeredGridLayout & Fresco. Let me show you what I'm getting wrong As you can see, these images height is streched I've tried changing layout_height params in…
1
vote
1 answer

How to create Items with different size in an order with StaggeredGridLayoutManager?

I have a list contains items included different categories. For example, i have 4 lists and i merge them like this: list1 = A,A,A,A list2 = B,B,B,B list3 = C,C,C,C list4 = D,D,D,D i merge these like…
serefakyuz
  • 273
  • 4
  • 14
1
vote
1 answer

Android scale item height of RecyclerView with StaggeredGridLayoutManager to match column width

I am using RecyclerView with StaggeredGridLayoutManager in vertical orientation. Item of the RecyclerView contains only one view - ImageView. I would like the ImageView height to scale to match RecyclerView's column width and keep aspect ratio of…
1
vote
1 answer

Android RecyclerView with StaggeredGridLayoutManager fixed row height in vertical mode

I am using Recycler View (with Card View) from Android v7 support library with StaggeredGridLayoutManager. What I want to achieve is to display cards in Recycler View with fixed row height, but still in vertical mode (vertical scrolling). Do you…
1
vote
1 answer

Align Items of RecyclerView in each row in android

I'm using RecyclerView with StaggeredGridLayoutManager to show tables of courses in my application, and that was OK, like the picture below: But, How can I adjust all Items of the second row to be started with the same line like the picture below:…