I have written an application that has 11 different relative layouts, all declared in the same file, but only one is showing, the other are hidden. Then I implemented a drawer that allows me to choose which layout showing. The problem is that these layouts are quite heavy (about 3000 lines), so my app runs slow, especially when starting another activity or when using searchview.
How can I avoid this? (I have tried to split the layouts but in this way I can only load one of them one time in the activty and I want to switch between them using the drawer)