Questions tagged [nestedrecyclerview]

android: horizontal linear recycler view nested within a vertical recycler view

android: horizontal linear recycler view nested within a vertical recycler view

198 questions
32
votes
14 answers

Nested RecyclerView. How to prevent parent RecyclerView from getting scrolled while child RecyclerView is scrolling?

I am trying to implement a horizontal recyclerview and each item of the recyclerview will be a vertical recyclerview with a grid layout. The problem that i am facing is that when I try to scroll the child recyclerview vertically sometimes the parent…
nikhil
  • 9,023
  • 22
  • 55
  • 81
19
votes
5 answers

Recyclerview binds all views at the same time

I have a vertical recyclerview (with a GridLayoutManager) inside another recyclerview (with LinearLayoutManager). The problem I am facing right now is that, the inner recyclerview (with GridLayoutManager) binds all of it's items at the same time,…
15
votes
10 answers

Recycler View Inside Recycler View not Scrolling

There is a Recycler View inside the other Recycler View.Both needs to scroll vertically. Outer Recycler view is scrolling properly but inner recycler view is not. Here is the code: LinearLayoutManager mLayoutManager = new…
13
votes
4 answers

Nested RecyclerView scrolling issue

In my application I have vertical parent RecyclerView with few horizontal childs inside its ViewHolders. But I have pretty annoying scrolling issue - after I scroll parent RV vertically I want to scroll one of my child RVs but parent just intercepts…
Den
  • 1,284
  • 2
  • 14
  • 33
10
votes
2 answers

Update Current Page or Update Data in Paging 3 library Android Kotlin

I am new in Paging 3 library in android kotlin. I want unlimited data. So I found Paging 3 library is helpful in my case. I used PagingSource to create a list. I am not using Room. I have nested recyclerView. I am using PagingDataAdapter with diff…
9
votes
4 answers

How to populate different object with same fields or properties in same recyclerview in android

I am going to develop soccer app, and having following json response.(link) I have two different class with different names, but with same properties or fields and want to display one same single RecyclerView. Here I have worldmatch and world having…
Horrorgoogle
  • 7,858
  • 11
  • 48
  • 81
7
votes
2 answers

Nested RecyclerView with Multiple View Lagging Scroll

I have a recyclerView with multiple view that each row of that is a recyclerView. When I scroll recyclerView, that is laggy on each row created. Here is some of my code. At below you can see config of main recyclerView: LinearLayoutManager…
Masoud Mokhtari
  • 2,390
  • 1
  • 17
  • 45
7
votes
0 answers

Maintain scroll position in nested RecyclerViews

I have a ViewHolder that contains another RecyclerView. This type of the ViewHolder gets reused multiple times. Since the ViewHolder is shared between different items, the scroll position of the RecyclerView is also shared between items. Eg, You…
6
votes
2 answers

smoothScrollToPosition does not work in nested RecyclerView

I have a recyclerView and each of it's item is a recyclerView. I want scroll to custom position of inner recyclerView at specific condition. I used this code at innerRecyclerView but it didn't…
Masoud Mokhtari
  • 2,390
  • 1
  • 17
  • 45
6
votes
2 answers

RecyclerView does not showing all items when its in a ScrollView

I Have 2 RecyclerViews in a LinearLayout inside a ScrollView :
5
votes
2 answers

Multiple LayoutManager in ConcatAdapter

I want to implement an ConcatAdapter like this image: This page's recyclerView contains these elements: Title Horizontal recyclerView (with pagination) Title Vertical recyclerView (no pagination) Title Horizontal recyclerView (with…
5
votes
1 answer

How can i update item of nested recyclerview item?

I have a recyclerview(parent) that populated with some recyclerviews(child) in a fragment and I want to update each of the nested recyclerviews(child) directly from fragment with an action (for example click action), how can I do this in a perfect…
5
votes
1 answer

How to properly use RecycledViewPool on a multi view adapter with nested RecyclerViews?

My app context so you can understand my question: I am currently coding a very complex application with a huge dashboard that contains a huge list of nested RecyclerViews (both horizontal and vertical). I know that the vertical RV inside a vertical…
5
votes
1 answer

Scroll nested RecyclerView programmatically to a position

I know how to programmatically scroll a recyclerview to a particular position. But my problem is i have a recyclerview with vertical linearLayout that has another child recyclerview gridlayout with on its each row. Now when i scroll parent…
4
votes
2 answers

Save Scroll Positions of Nested RecyclerViews

I'm using navigation component in my app and for get data from api i'm using retrofit in MVVM architecture, i want get data from api and display in nested RecyclerView, this is worked and not problem for display data into nested Recylerview but when…
h.joa
  • 43
  • 1
  • 6
1
2 3
13 14