For understanding the structure I will be talking about, first see this example picture:
I need to show multiple ListViews in one fragment. The problem is when opening the given fragment, inflating the views takes quite a lot of time, because:
Each ListView inflates 3-5 items for itself, because neither of the ListViews have scrap views (yet).
So the fragment instantly inflates 10-30 instances of the same view, which can easily cause a 200-300ms long stutter, which is far from acceptable (the fragment has a show and hide animation).
My question would be, is there any way to speed up inflation (aside from using ViewHolders, simplifying hierarchy, and the usual things). Since the views are of the same type, there could be same global Recycler where the scrap views are stored, and outlive the life of the screen, which results in having scrap views when creating the ListView (looked into the ListView source code, and would require a lot of coding and understanding of the internals).
Since there quite a lot of apps having a similar structure, I'm curious how they solved (if they could have) the performance issue on inflation.