0
I made an application with Navigation Drawer making use of the AS wizard, on the first screen "Mainactivity" implemented a layout with Tabslayout and Viewpager and everything is working perfectly, this app has other activities and these do not have access to Drawer, only that the application requester asked me this, I thought I would go copying in all other activities to get to this implementation more even with few activities 6 this would give a certain work well "repetitive", so I thought to use Fragments.
With Fragments my work would be reduced since the "core" of the screen would be updated and this would reduce my work of having either leave by inserting Drawer in all other more.... , I’m finding it difficult to use Fragments and refactoring my app which came to me so the question is a good practice to have an app with these features? the IDE itself in its assistants or gives option to one or the other, I searched for examples with Drawer and Tabs or for any post that addresses the subject, find Drawer and Fragments further within this with Tabs not.
I even managed in this my first activity put in a Fragment only I have found problems with Tabs that did not stay together with Toobar, if I rotate the device the content of Tabs disappears, so after I select one or the other that the same appears, so I’m even afraid to go into other activities turning them into Fragments.
Is it a good practice an application with these elements?
Interested in good practice?! Check this out: https://github.com/futurice/android-best-practices
– viana
What to be 'AE’s assistant'?
– viana
Hello Ack Lay good afternoon, dear sorry I made the fix is AS - Android Studio
– Robson