gridlayoutmanager Questions

3

I have RecyclerView above that i have an AppBarLayout whose height is larger than 255 px. When user scrolls RecyclerView, AppBarLayout has an fling issue. To avoid that i decided to expand AppBarLa...

13

Solved

I am trying to add spacing below the last element row in RecyclerView with GridLayoutManager. I used custom ItemDecoration for this purpose with bottom padding when its last element as follows: pu...
Slotter asked 16/6, 2015 at 11:19

9

Solved

I'm populating the recyclerView with gridlayoutManager. Now I want to save the scroll position on Screen Rotation. I've tried to do so using onSaveInstanceState and onRestoreInstanceState() as sh...
Adjournment asked 16/7, 2019 at 16:3

18

Solved

I'm using basic RecyclerView with GridLayoutManager. I observed that nor smoothScrollToPosition nor scrollToPosition works properly. a) when using smoothScrollToPosition I often receive error from...

33

Solved

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

3

Solved

I am using following code dynamically change span count. val layoutManager = GridLayoutManager(this, 3) layoutManager.spanSizeLookup = object : GridLayoutManager.SpanSizeLookup() { override fun ...
Strahan asked 9/7, 2018 at 11:10

2

I'm having an issue while populating a recycler view with a GridLayoutManager. I need to fulfill the first row, and after this is complete, go to the second row. I did an algorithm that reorders t...
Boraginaceous asked 6/2, 2017 at 20:12

4

Solved

I have a vertical RecyclerView using a GridLayoutManager. I want each column to be centered, but the columns begin all the way on the left. In the following picture you can see what I'm talking abo...
Jase asked 27/7, 2016 at 23:35

2

Solved

I'm using a very helpful example here to show a RecyclerView and a GridLayoutManager to show a grid with a header. It looks pretty good, but my graphic designer wants the header item to take up th...
Hibernate asked 5/6, 2016 at 14:11

8

Solved

I know that RecyclerView has replaced the functionality of the old ListView and GridView. I am looking for a very basic example that shows a minimal grid setup using RecyclerView. I am not looking ...
Rutaceous asked 14/11, 2016 at 11:2

14

Solved

Using the new GridLayoutManager: https://developer.android.com/reference/android/support/v7/widget/GridLayoutManager.html It takes an explicit span count, so the problem now becomes: how do you kn...

10

Solved

This is more like a generic question, but after lot of search and try I am not able to understand why this is so difficult to achieve. This is the closest answer I can find but still unable to impl...

2

I tried adding horizontal dividers to my GridLayout RecyclerView. But for some reason, the dividers didn't show up. As an alternative, I used the addItemDecoration method with 2 parameters, where ...

2

Solved

I inherited some big project with a lot of legacy code and now I'm facing some weird stuff.. I need to make this screen have recyclerview with grid layout manager, 2 columns. This is what I get....
Emelinaemeline asked 9/5, 2017 at 10:13

9

Solved

My Recycler Item which inflate in onCreateViewHolder <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_widt...
Paramedic asked 5/2, 2016 at 10:18

2

I'm trying to build a RecyclerView with a GridLayoutManager which has a variable column count per row, something like this: The sum of the width of all items in the same row will always be the s...
Enzymology asked 6/3, 2017 at 15:53

4

I'm trying to center all my items horizontally for each row in RecyclerView I tried many things: RelativeLayout as a parent, then use layout_centerInParent, use the basic android:layout_gravity="c...

5

Solved

I used GridLayoutManager as my layout manger for recycler view. mRecyclerView.setLayoutManager(new GridLayoutManager(getContext(), 2)); the result is like below: but I want to divide width be...

3

I try to solve the following: using RecyclerView with GridLayoutManager with fixed cell-widths recyclerview resizing only to the necessary height (wrap_content) I try to use the following code,...
Lynnette asked 28/7, 2015 at 15:54

1

Solved

i need every 18,36,54,...18*Nth... grid with layout with width:match parent and height:60dp in grid layout manager for pagination loadingbar purpose. Here is my code, GridLayoutManager mng_layout ...
Refusal asked 20/8, 2020 at 16:45

1

I am trying to do this using recycler view with gridlayoutmanager. GridLayoutmanager takes spancount. Here I want to update the view based on the width of the text in the recycler view items.
Cimbalom asked 9/11, 2016 at 4:40

3

Solved

I have seen many types of layout managers like: LineraLayoutManager RecyclerView.LayoutManager ListViewLayoutManager etc What actually LayoutManager is and why it is used and what are the diffe...

2

How to implement horizontal gridlayoutmanager with recyclerview. Fixed row count. and horizontal scroll. Like this... gridLayoutManager = new GridLayoutManager(getContext(), 1, GridLayoutManage...
Fane asked 23/11, 2015 at 3:8

1

Solved

I ran into a problem with a RecyclerView and I thought you guys can help me. So the problem is: Inflating the item view xml takes too much time. The layout is grid layout with 3 items in a row and...
Cadmus asked 9/9, 2019 at 9:20

9

Solved

I try to make a grid-layout with square images. I thought that it must be possible to manipulate the GridLayoutManager by manipulating onMeasure to do a super.onMeasure(recycler, state, widthSpec...
Eury asked 25/10, 2014 at 20:31

© 2022 - 2024 — McMap. All rights reserved.