follow this method..
yesterday there was same topic but topic title was not relevant
but you can use that logic only for tab layout and viewpager…
for side menu you have to try with custom way..
bottom navigation will be easy just based on selection..(but im not sure about this..)