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 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.
Its available from API 2. I believe. So almost all device. I recollect seeing it in Google IO videos.
Related
I'd like to add a sliding drawer to my app which is using the min sdk version of 16 and a target sdk of 21 and should allow it to use the most recent features of the platform.
I looked around on how to implement a sliding drawer, and all the articles I found talk about using some support APIs to do just that.
My app is not yet using these support APIs.
I wonder if implementing the sliding drawer is possible without any support APIs, and if so, if there is any resources showing just that.
DrawerLayout, the basis for Creating a Navigation Drawer is only found in the Android Support Library (along with many other Support Library only APIs). There is nothing in the Android framework that provides this same functionality.
To provide the most consistent experience to users, you should just use the Support Library.
You should consider using support APIs, but if you really dont want to, you can use user-created library.
Here's one I used for one of my projects:
https://github.com/mikepenz/MaterialDrawer
Yes, it is always possible. However, the DrawerLayout class is available only in support libraries.
When I first realized that, it made no sense to me. But now I see support libraries as an extension of the core libraries (android.*).
Anyway, I recommend using the support libraries or you will have to create the logic to do exactly the same from scratch.
You can use android design support library, it's working on all devices in android and it's open source so you can edit it as you like with custom element.
Here's a reference how to implement Navigation drawer using new android support library
I am new to android app development. Using API19 in android studio 1.2. I found sliding drawer attractive to use in my app. But when I used it in design layout, i got to know that it is deprecated. Hint says it is unsupported and use your own implementation.
Why was it deprecated ?
Can I still use deprecated API without any issues ?
If not, how can i implement feature similar to sliding drawer from UI perspective ?
Can I still use deprecated API
Yes. It still exists.
without any issues ?
Since Google is no longer maintaining it, it may not work well on future versions of Android.
how can i implement feature similar to sliding drawer from UI perspective ?
Use any one of the many sliding panels available as third-party libraries.
I want to implement the android navigation drawer for my app that is supporting jellybean and higher. All tutorials I seen so far use the support version.
I am wondering, are they doing that to support people who want to support old android versions?
If possible I want to use the non-support version. Does anyone know where I can find a good tutorial for that?
Or is using the support version the only way to get it?
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/
Thanks
The docs for the Support Library states:
The Android Support Library package is a set of code libraries that
provide backward-compatible versions of Android framework APIs as well
as features that are only available through the library APIs.
This means that this library contains components, which are not included in the Android SDK. F.e. the ViewPager and related classes like the family of PagerAdapters or even the DrawerLayout.
In what API level was introduced Navigation Drawer? I tried to search and find what was introduced in API 14 but I am not sure.
DrawerLayout is included in the v4 support library, so it can be used on any platform version starting from API level 4.
The support library was specifically designed to bring newer features and ui patterns also to older device and provide a consistent user experience throughout the whole platform.
As I know 14 is correct, but to make sure, try to implement a NavigationDrawer and set your APILevel lower than 14. Normally e.g. claims that at least lvl 14 is needed
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.
you can check in this link
As google announced a new navigation pattern called Android navigation drawer. Along with guideline and sample which requires latest version of android support library v13
how to implement lateral Navigation (https://developer.android.com/training/implementing-navigation/lateral.html#horizontal-paging) in android 2.3, api version 10?
Because I did download the example provided by Google in the link but it doesn't work in device with api 10, but there are many aplications in google play that have this functionality.
Thanks in advance!
The ViewPager itself does work on Android 2.3, assuming you are using the Support Library's FragmentActivity and Fragment classes, so I'll assume the issue you are having with the example is with the tabs. In that case, I would suggest looking over the Creating Backward Compatible UIs training and specifically the Creating an Implementation with Older APIs lesson, which goes over implementing tabs in a method that works on Android 2.3 devices.