I have a NestedScrollView that contains a variety of layouts one of them being a recycler view. The hierarchy is something like shown below.
NestedScrollView
ConstraintLayout
TextView
Many other layouts
RecyclerView
From various articles I know this is a bad idea trying to have 2 scrolling views in the same direction and to solve it what I've come across is creating a layout out of all the other views, removing the ScrollView and then adding the layout as an item to the RecyclerView. However, other views have complicated logic. Would it be a terrible idea to convert the layout into a fragment and add that as an item to the RecyclerView? Is it a bad coding practice to follow this route?
The goal of this is to make sure the RecyclerView actually recycles its views.
Thanks