Open wuman opened 10 years ago
I've recently experimented with the Navigation Drawer integration and made an example app for that purpose.
It basically copies the ActionBarOwner
pattern to change the state of the drawer. Communication from the Activity
to the drawer is achieved by having the main content frame a DrawerLayout
and calling it's methods directly.
@balysv Any further development of this since the upgrade?
This is a feature request.
Navigation drawer is quite commonly used in apps. I think it would be really helpful if the sample app could include implementation for integrating with the navigation drawer (or perhaps share how Square handles this).
One tricky thing is that an owner of the navigation drawer (much like the implementation of
ActionBarOwner
) should be called in both directions: calling from a second-level child screen to theActivity
to disable the swipe gesture, and calling from theActivity
to the navigation drawer owner tosyncState()
and handleonConfigurationChanged()
.