Questions tagged [staggeredgridlayout]

99 questions
0
votes
1 answer

Staggered View rows and columns are not changing

My Staggered view is implemented like this MyApp but it should look like this Demo And i'm not able to change the rows and columns If i'm changing columns its fine but if i change row more than 1, then i get invalidOrientation warning but app runs…
0
votes
1 answer

how can I center items in each row in recyclerview staggeredgridlayout?

There is few examples about recyclerview, I havent found any related solution, Ill be glad if someone helps me. I just want make my view looks as in the left part of the photo The right view is what I've done and the left view is what I want to…
0
votes
1 answer

How to remain spanindex for StaggeredGridLayoutManager

I am using RecyclerView with StaggeredGridLayoutManager for 2 SpanCount. each item has following layout.
RyanShao
  • 429
  • 2
  • 9
0
votes
1 answer

how to control SwipeRefreshLayout and Endless Fuction on Scroll StaggeredGrid RecyclerView?

I try commbine StaggeredGrid RecyclerView with Endless and SwipeRefreshLayout. but I have issue with my code : grid.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView…
0
votes
1 answer

Why RecyclerView is scrolling way too more above the first item and flickering while scrolling?

EDIT: The problem is solved !! My RecyclerView flickers while scrolling. There are 5-6 items in single screen. When I scroll down, the screen flickers and the scroller jumps back to the top of the RecyclerView. Now after that if I scroll up again,…
0
votes
2 answers

RecyclerView + StaggeredGridLayout + Picasso get GridItem width

m using RecyclerView with StaggeredGrid (spanCount is variable). Each GridItem (a CardView) contains an a square ImageView. What i want is to load an Image from my backend with desired width and height to exactly fit an ImageView inside a CardView.…
localhost
  • 5,568
  • 1
  • 33
  • 53
-2
votes
3 answers

Crash with Staggered Layout Manager of Recycler View

I load recycler normally and data is shown properly. But I have requirement to recreate my actvity on certain condition. When I recreate my activity, Recycler view is initialized again and is loaded with new set of data. But this time I get a crash.…
-2
votes
1 answer

Dynamic columns in RecyclerView

i want to create a grid in android wherein suppose if i pass an arraylist with 5 elements first row should have 3 columns and next row should have 2 columns with centered if i pass an arraylist with 6 elements first row should have 3 columns and…
-3
votes
1 answer

Android Cardview with picasso, recyclerview

i'm new in this forum. I have a problem with CardView. I use recyclerview to binding data and to show a big list of image using picasso with staggeredgridlayoutmanager. But when i scroll the view, the image refresh (naturally), the cards change…
1 2 3 4 5 6
7