Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Version supported by navigational drawer in android

Tags:

android

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.

like image 428
Zubair Ahmed Avatar asked Jul 16 '13 05:07

Zubair Ahmed


People also ask

Where is the navigation drawer on my Android phone?

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.

Why do we use the navigation drawer in Android app?

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.

What is drawer layout in Android?

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.

Which view is used to add the navigation drawer to an app?

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 .


1 Answers

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.

like image 164
amalBit Avatar answered Sep 23 '22 04:09

amalBit