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
0
votes
3 answers

RecyclerView inside RecyclerView, app crashing due to high memory consumption

I wanted to create a recycler view of photo albums and when the user taps on an album, it expands to grid layout showing images in that album. For example, non-expanded: and expanded: The layout of outer recyclerView item only contains a textView,…
0
votes
1 answer

ViewPager2 swipe not working inside RecyclerView

I have a parent RecyclerView that contains another RecyclerView and a ViewPager2 as it's children. The ViewPager2 child is like a Tinder Card Stack that swipes left and right, and works perfectly fine independently (when it is not in parent…
0
votes
2 answers

Removing an item from a nested RecyclerView

I've been duelling with this problem for a good few hours now. I have a nested RecyclerView (i.e. a RecyclerView that encompasses an inner Recycler view). Both the parent and child recycler view's are dynamic. The problem I encounter is that I…
0
votes
0 answers

improve performance of wrap_content height recyclerview

I have 3 vertical recycler view in a screen inside a NestedScrollView like:
0
votes
1 answer

Dynamically add subItems in nested recyclerview with a button

I have a nested recyclerview and I want to dynamically add subitems into individual items as well as being able to add items. I am able to add items, but when I add subitems, the program just stops running. I'm not sure how I can have each item with…
Jeff
  • 21
  • 4
0
votes
1 answer

Is there any to let RecycleView's first visible item get focus

There is some code snippet in my project which used RecycleView. Is there any way to let the first visible item to get the focus rather than the last visible item? // The picture marked with RED parentRecycleView.setAdapter(ParentAdapter) // The…
0
votes
1 answer

Best practise for creating a dynamic list of dynamic lists?

I want to populate a list (RecycleView or similar) with any number of elements in runtime. Example: //Data Models Animal(spices: String, breed: Breed) Breed(name: String, color: String) The list should look something…
0
votes
1 answer

Nested RecyclerView : onBindViewHolder getting called infinitely

Let's make this real simple. I've two model classes, Category and Movie. data class Category( val id: Long, val name: String, val movies: List ) data class Movie( val name : String ) Each category has multiple movies. So to…
theapache64
  • 10,926
  • 9
  • 65
  • 108
0
votes
1 answer

Losing data while scrolling in Nested RecyclerView

I am working on a chatbot in which there are two view types in the parent adapter, in which the ReceivedMessageViewHolder has nested recycler view, I am currently removing the visibility of the nested recycler view on click of any item inside the…
Shubham Agrawal
  • 1,252
  • 12
  • 29
0
votes
1 answer

Hide the visibility of the nested recyclerview in android on ChildItem Click

I have a nested recycler view on which child item click I want the whole child recycler view to set visibility GONE. I have tried some way to do it. But keeps on loosing the recycler view state and wrong data show's up. Help, please. Here is…
Shubham Agrawal
  • 1,252
  • 12
  • 29
0
votes
0 answers

Nested FirestoreRecyclerAdapter Shows Nothing

I'm trying to achieve an Instagram style comment section. I have a collection group query /comments and can display comments just fine with RecyclerView. Inside of the parent FirestoreRecyclerAdapter onBindViewHolder I have this. …
0
votes
1 answer

Making Cart in Android - Refresh not working properly

I'm trying to make a cart like in grofers. Expected: When I add items to cart by clicking on add button, go to other page and come back. The items which are in cart should have the quantity selected and other items should have add button with…
haox_illued
  • 155
  • 1
  • 11
0
votes
1 answer

RTL Horizontal RecyclerView doesn't work properly inside a NestedScrollView in a CoordinatorLayout

I have a food app in Arabic, This is how my app looks like: As you see, the horizontal RecyclerViews are RTL as expected. In this app, I have a Category and a Recipe, the categories are populated vertically in the parent RecyclerView and the…
0
votes
1 answer

Nested RecyclerView with nestedscrollview is not scrolling

I have a row that has a recyclerview inside another recyclerview, like this image I need the inner recyclerview to be able to scroll it, I have tried this (this is inside a ConstrainLayout)
SNM
  • 5,625
  • 9
  • 28
  • 77
0
votes
0 answers

Nested RecyclerViews

I'm creating a calendar app, with each month being displayed using a RecylcerView. Inside each day of each month, there is another RecyclerView to display events on that day. I'm using the custuomLinearLayoutManager from…