Now my code is about Nested RecyclerView for 3 layer example
RecyclerView of Product haveRecyclerView of comment and order inside and both also haveRecyclerView of reply|COMMENT in comment and order too.The customer wants this.
Is there another solutions to handle this with good performance.
While I'm using Nested RecyclerView it lags and slow if a lot of product, comment, order and reply to display
Nested Recyclerviews are a bad practice in the material design or google app design guidelines. You will have trouble with a bad and wrong scroll behaviour, it is simply not possible to work with this fluently as a user. Also your views will not be recycled and if your content grows the app will act very slow! There are workarounds but it is all a bad practice and more a bad design. You should inform your customers because there are not aware of those design failures and the technical bottlenecks.
A better way would be to enable to collapse the nested views. And just scroll the whole view or to use paging inside all nested views.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With