I have recycler view with different type of cards inside it with lots of images and nested recycler view for every card. While scrolling recycler view I am getting lot of jerk can someone help me on this.
Related
Recycler View Not scrolled with another view in android studio.
when i scroll with recycler view element , it scrolled well , but when i scrolled from another view . recycler view element not scrolled even if many recycler view elements are remaining.
i want to scroll fully from another view too.
My question is why do wrap recycler view into nested scroll view
Does it relate to smooth scroll of recycler view
Actually i am creating app which fetch 2 images and the scroll of recycler view in that is very slow so should i wrap it into nested scroll view for smooth flow or compress images and store them
I am a bit confused on this topic ?
Wrapping Recycler view in scroll view is like a two sided blade. You should be careful about using it.
because when you use it, the recycler view will loose its advantage of recycling unneeded rows so at the same time you will have references to all those view, so if you have rows with many graphical item it will make problem for slow devices.
If you see putting the recycler view inside another nested scrollview solved your speed problem, It means you do a mess in the adapter of recycler view.
Do not do any heavy process in adapters and onBindViewHolder
I was designing a profile page for my app in android Studio with recycler view(Vertical), where each row has its own layout and I load it using the Recycler view adaptor...The 3rd and 4th row of my recycler view are again another recycler view(Horizontal) and they displaying images using another adaptor. My problem is while I am scrolling my activity the 3rd and 4th row slow down the scrolling speed. How can I fix it?
Your problem does not have to be with the adapters, there has to be with the amount of information that the recycler is going to process.
This link can help you.
https://www.reddit.com/r/androiddev/comments/2p99lw/recyclerview_scrollbar_with_lots_of_items_very/
I have a horizontal recycler view inside of a vertical recycler view. Think of it as a slideshow inside a feed of content views. When the content view with the slideshow loads, it seems to load all 25 views rather than just the ones that are visible on screen. What I want to be able to do is set a limit on how many elements are loaded that are not currently visible. Is this possible with nested horizontal inside a vertical recyclerview?
I have a RecyclerView adapter and in each view holder I have nested view group (TagGroup https://github.com/2dxgujun/AndroidTagGroup)
The performance is horrible while scrolling with these nested ViewGroups
My adapter even uses sethasstableids(true) which speed up scrolling performance slightly
My question: Is there any way to stop certain parts of onBingViewHolder() code while scrolling i.e. the section where the view group is populated
I know so that some image loading libraries have way to stop loading image while scrolling
below you can see the TagGroup (ViewGroup) in each view holder
https://drive.google.com/file/d/0B-fCQa73GiDYZDgtMXJoR2k2M045Nm10dDRRLXA4RW9YaGZB/view?usp=sharing