Android Navigational Drawer
is supported on minimum which version? Also can we make Custom Navigational Drawer
in android? If we can then kindly tell me how to get started. I have read the documentation from Android Developer Site but many things I can't understand and want help
Thanks in Advance.
The navigation drawer is a UI panel that shows your app's main navigation menu. The drawer appears when the user touches the drawer icon in the app bar or when the user swipes a finger from the left edge of the screen.
Navigation drawers provide access to destinations and app functionality, such as switching accounts. They can either be permanently on-screen or controlled by a navigation menu icon. Navigation drawers are recommended for: Apps with five or more top-level destinations.
DrawerLayout acts as a top-level container for window content that allows for interactive "drawer" views to be pulled out from one or both vertical edges of the window.
Create the DrawerLayout To display the drawer icon on all destinations in our app, we will use the DrawerLayout component. Open main_acivity. xml and add DrawerLayout as the root view. The drawer layout will host two child views, NavHostFragment and NavigationView .
The Navigational Drawer is part of the suport library v4.
From the Android doc:
Support android.app classes to assist with development of applications for android API level 4 or later.
So you can use the navigation lib from api 4 onwards.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With