Top "Gridlayoutmanager" questions

A RecyclerView.

Simple Android grid example using RecyclerView with GridLayoutManager (like the old GridView)

I know that RecyclerView has replaced the functionality of the old ListView and GridView. I am looking for a very …

android gridview android-recyclerview gridlayoutmanager
Android Recyclerview GridLayoutManager column spacing

How do you set the column spacing with a RecyclerView using a GridLayoutManager? Setting the margin/padding inside my layout …

android gridview android-recyclerview gridlayoutmanager
RecyclerView GridLayoutManager: how to auto-detect span count?

Using the new GridLayoutManager: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html It takes an explicit span …

android android-recyclerview android-gridlayout gridlayoutmanager
(Smooth)ScrollToPosition doesn't work properly with RecyclerView

I'm using basic RecyclerView with GridLayoutManager. I observed that nor smoothScrollToPosition nor scrollToPosition works properly. a) when using smoothScrollToPosition I …

android scroll android-recyclerview smooth-scrolling gridlayoutmanager
How to set the height of an item row in GridLayoutManager

My Recycler Item which inflate in onCreateViewHolder <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.…

android android-recyclerview gridlayoutmanager
Set span for items in GridLayoutManager using SpanSizeLookup

I want to implement grid-like layout with section headers. Think of https://github.com/TonicArtos/StickyGridHeaders What I do now: …

android android-support-library android-recyclerview gridlayoutmanager
RecyclerView 2 Columns with CardView

I have a problem with my layout. I'm trying to do something like this: For now, i have a RecyclerView …

android imageview android-recyclerview android-cardview gridlayoutmanager
Drag and drop items in RecyclerView with GridLayoutManager

What I want to achieve: Have a RecyclerView with GridLayoutManager that supports drag'n'drop and that rearranges the items while dragging. …

android drag-and-drop android-recyclerview gridlayoutmanager
How to center RecyclerView items horizontally with vertical GridLayoutManager

I have a vertical RecyclerView using a GridLayoutManager. I want each column to be centered, but the columns begin all …

android android-recyclerview gridlayoutmanager
Square layout on GridLayoutManager for RecyclerView

I try to make a grid-layout with square images. I thought that it must be possible to manipulate the GridLayoutManager …

android android-recyclerview gridlayoutmanager