Questions tagged [staggeredgridlayout]

99 questions
3
votes
2 answers

Android: How to create a Facebook like images gallery grid?

I'm trying to implement a facebook like, gallery grid, where items have different sizes: I was trying to use different libraries/solutions but for now without success: I tried to use AsymemetricGridView. But the problem with this implementation is…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
3
votes
1 answer

Autoscaling height of imageview in StaggeredGridLayout

I have a recyclerview containing ImageView. But there is extra space at bottom of each image. The extra space is the red background as you can see on the screenshot. I would like all images to be side by side. Here is the code in my Activity to…
guillaume
  • 1,638
  • 5
  • 24
  • 43
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
2
votes
1 answer

How to determine viewholder is left or right in RecyclerView with StaggeredGridLayoutManager

I have read a lot of similar articles but still didnt find answer how to know view holder is left or right in RecyclerView with StaggeredGridLayoutManager. Situation: I have RecyclerView, StaggeredGrid and want to do padding like 8 dp [left view] 8…
2
votes
1 answer

GridLayoutManager Customization

i want to know if there is way that i can customize gridlayoutmanager in android to have horizontal layout like this sketch: i tried some layout manager that i found in Github but non of them that help me to implement this kind of layout…
2
votes
2 answers

Staggered gridview not working properly in android

I am using staggered gridview which is placed inside NestedScrollview. I don't know y it is coming one below the other when loading for the first time(if image cache is not there). Is there any issue with staggered gridview? Or is it because of my…
2
votes
0 answers

using staggered gridlayout manager in recycler view sorting of items in particulate order is possible

I have recyclerview which is displaying lot of items in card views those views are dynamic height like following pic. I achieved it but i have an other problem if i apply any order like increase like that iam getting this one. If we look in 5th…
2
votes
0 answers

RecyclerView with StaggeredLayoutManager on multiple (difference) row and column span

i have a RecyclerView and StaggeredLayoutManager that i want to put some CardView with different row and column span but base on defined fixed size like as it : if you saw CardView of 0 is 4X (2 row x 2 column ) of 1 and smaller CardView size…
2
votes
0 answers

staggeredgridlayoutmanager HORIZONTAL fill rows first

I'm trying to achieve in Android a list of views that will look like this: Couple of specific behaviours which made this a problem for me: The list of views (in red), can be dynamic, and can vary in size The views flow should be rows then columns,…
Nadav96
  • 1,274
  • 1
  • 17
  • 30
2
votes
1 answer

How do I implement Dynamic Row Span in StaggeredGridLayoutManager

I am trying to achieve customn Rowspan in StaggeredGrid How do I dynamically change the rowspan of my StaggeredGridLayout . There is one implementation suggested by @Gabriele Mariotti StaggeredGridLayoutManager.LayoutParams layoutParams…
2
votes
2 answers

My RecyclerView Items confuse position when I clicked?

My video problem I have trouble with my item selection in RecyclerView. When I click, item appears purple overlay, but when I scroll to another screen, it appears for another item, and when I scroll back, the old item overlay disappear. I don't…
2
votes
3 answers

Preload Picasso Image with StaggeredGridLayout

I have a StaggeredGridLayoutManager that loads 20 cards which contain images (loaded from cache, network, or storage with Picasso) in a 2 column wide grid. Issue: Currently, as you scroll down the list the images are loaded as the cards slide into…
bw872
  • 167
  • 2
  • 12
1
vote
1 answer

Screen to staggered isometric grid algorithm

I'm working with Kivy and Pytmx, I need to get Grid Tile from Map Coordinates for staggered map. mymap My tile size is: TILE_WIDTH = 256 TILE_HEIGHT = 149 When I used the isometric diamond grid, I calculated it like this: def…
xXZyzzXx
  • 13
  • 3
1
vote
3 answers

Full width footer or last item in RecyclerView using StaggeredGridLayout

So this is pretty tricky. The closest thing I have found to get this working is a modified version of this answer. Where I make the last item the same height as the view I want to be full width and invisible. Then I add an itemdecoration and draw it…
1
vote
2 answers

Why is my staggered grid layout unbalanced?

I've created a recycler view, and its layout is managed using staggered grid layout. But the result is not balanced, anyone can help? What I've done is : val manager = StaggeredGridLayoutManager(2,…