I am building a news app. In phone mode it should have a navigation drawer which slides out when you tap on a hamburger button or slide your finger. That navigation drawer has a fragment with static list in it.
While in a tablet mode, when you rotate the screen to landscape, that fragment with the list would be permanently visible.
What is the general approach to developing these kinds of apps?
If I decide to make a separate layout for the tablet landscape mode without a DrawerLayout, it would probably cause an error because the Navigation Drawer fragment class is referring to a DrawerLayout in XML, and if I decide to have DrawerLayout in tablet-landscape mode and call the openDrawer method every time I rotate the screen to the landscape mode, it would overlay the main content.
How should I handle it?