Is there an (easy) way to wrap the navigation drawer view (more precisely android.support.design.widget.NavigationView
) from the design support library in a Fragment?
The motivation behind this is to move navigation drawer related code (e.g. a toggle that triggers a network request) out of the hosting Activity into a separate module.
I'm looking for reference implementations or documents that describe how to implement such a behavior.