Questions tagged [gridlayoutmanager]

A RecyclerView.LayoutManager implementations that lays out items in a grid.

A RecyclerView.LayoutManager implementations that lays out items in a grid. More info on the docs: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html

403 questions
0
votes
0 answers

Set height & gravity of Span item in GridLayoutManager

I'm working with Grid Layout Manager in Recycler View. I can : show one View Group inside Grid Layout like image below. Able to set Space Item Decoration Able to set different Span Size Lookup. My issue is : Not able to set Height of each Span…
Huy Tower
  • 7,769
  • 16
  • 61
  • 86
0
votes
2 answers

How to autofit an item using setSpanSizeLookup?

I am trying to make this type of layout using setSpanSizeLookup by GridLayoutManager. Does anyone know how to autofit an item by calculating width of the item and auto adjust like image? If there is some another way then please suggest me. Here is…
0
votes
1 answer

Android RecyclerView and GridLayoutManager layout

I'm trying to implement a RecyclerView with a GridLayoutManager in my Android application. The CardView elements within the RecyclerView are displaying vertically as if they were in a LinearLayout. How can I coerce them to fill the grid from left to…
0
votes
1 answer

How to create this UI using GridLayoutManager inside RecyclerView and fix span to left or right

How to create this UI using recycler view and GridLayoutManager. The problem I am getting is placing the items to only at left position or only at right side in some cases.
Ankit Aman
  • 999
  • 6
  • 15
0
votes
1 answer

Hidden Position in recyclerview appearing when visited second time

I have created a bus seat layout using RecyclerView through GridLayoutManager. when the view is inflated for the first time, seat arrangement view, only visible adapter positions are shown, but when the view is inflated for next time in same…
Insane Developer
  • 1,014
  • 10
  • 19
0
votes
1 answer

RecycleView with cards aligned in grid mode and others in list mode

I want to create a RecycleView with 4 CardViews aligned in grid mode and the last one in list mode, is that possible? Do I need to customized LayoutManager?
VMarcos
  • 1
  • 1
0
votes
1 answer

RecyclerView LayoutManager - force to keep a view even if not visible

I am animating views between two RecyclerView. The first one is something like a list of folders showing the first item as cover, clicking it opens a new view showing the folders content animating the cover to the first item. Clicking back animates…
prom85
  • 16,896
  • 17
  • 122
  • 242
0
votes
1 answer

How to scroll clicked row of Android GridLayoutManager to top of RecyclerView

I am using a RecyclerView with a GridLayoutManager, I need to scroll the clicked view to the top of the RecyclerView, but using the built in mRecyclerView.scrollToPosition(0); method does nothing, even when using a handler to delay the scroll…
Edmund Rojas
  • 6,376
  • 16
  • 61
  • 92
0
votes
2 answers

Can I set dynamic column widths in GridManagerLayout in Android?

I have a recyclerView with a gridManagerLayout like this: GridLayoutManager manager = new GridLayoutManager(Main.this, 10); manager.setOrientation(LinearLayoutManager.VERTICAL); recyclerView.setLayoutManager(manager); Is there a way to set…
kimv
  • 1,569
  • 4
  • 16
  • 26
0
votes
2 answers

How to set a dynamically sized placeholder in a recyclerview with gridlayout?

I'm working on a piece of code that allows the user to select one of their photos from Facebook and use it in our app as a profile picture. The logic is done, but the layout gives me a bit of a headache. I have this layout for my images
0
votes
1 answer

RecyclerView: weird layout

I reduced my item view to the bare minimum but I still have a layout with a lot of padding and that's not what I expected. See the photo: One cell in the renderer: The actual view: Can someone explain how I can remove these white spaces on the top…
0
votes
1 answer

How to implement Facebook photo grid alignment in Android

In my app, I used GridLayoutManager with spansize to align photos. However, this solution only creates static photo layout, not dynamic layout like Facebook's app. For example, here are my grid layouts with 3 and 5 photos: And here are Facebook's…
Hoang Lam
  • 523
  • 8
  • 23
0
votes
2 answers

Android Custom Layout Manager with scroll both vertical and horizontal and fill items by vertical first

I'm developing an Android application. One of the screens has UI like that: Mockup-UI It means: there are a number of columns, the width of column is fixed too, so maybe be it need to scroll horizontally. Each column may have different items number…
0
votes
3 answers

GridLayoutManager with EndlessRecyclerOnScrollListener not working properly android

i wnat to integrate endlessrecyclerview with web seervice data in GridLayoutManager so below is my code public class GridRecycle extends AppCompatActivity { RecyclerView mRecyclerView; private GridLayoutManager…
user6018106
0
votes
1 answer

Where do I get GridLayoutManager

I have a package Xamarin.Android.Support.v7.AppCompat in my Xamarin Studio. Is this the package that holding the GridLayoutManager or some other package
LittleFunny
  • 8,155
  • 15
  • 87
  • 198