navigation drawer activity is not available when I create a new application - android

I want to create a Navigation Drawer in my application. I think by default template is available for that. But when I create a new application it is not showing the Navigation Drawer Activity.

I think it is because of Min.SDK and Target SDK that you set at the time of creating a new application.
Now If i try with Min.SDK 4.0 and Target SDK 4.4 i can see Navigation Drawer option.
One suggestion that I would like to given you that don't go with default navigation drawer as it has a lot of prob while customization.
So I recommend you to go with http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/ this tutorial.it explains pretty well.

Related

Can I have both a customized login and Navigation Drawer screen?

I have tested both login and Navigation Drawer by customizing my own and by using Android's built-in template. I can create the login and navigation separately on it's own and customize them and they work well. However, when I try putting them together in the same project, it refuses to work. If I customize my login and use Android's navigation template, I'm able to reach the navigation menu. However, I cannot customize the menus because it uses MutableLiveData variable. A check on google doesn't show any other examples e.g. how to use image, button, Edittext etc, so I can't use the template with my customized login.
I have also tried rare possibilities like making both login and navigation as Mainactivity but they don't work - in other words, there are 2 main activities in a project. To worsen the situation, whilst older navigation drawer code doesn't use fragments, they are too old and complete examples are not found anywhere. All recent navigation examples uses fragments. So can someone help? Is there a way to create and customize both login and navigation drawer - and put them in the same project and they work well?

How to design Sliding tabs with Android Studio default Navigation drawer?

I want to Implement Navigation drawer with sliding tabs. I have done this by designing my own navigation drawer. Now I want to use Android studio default navigation drawer with sliding tabs. I am not getting any idea???? Can anyone please help me...
THANKS in Advance
It has been explained here in great detail with code.
http://developer.android.com/training/implementing-navigation/nav-drawer.html
For New Project:-
Create New Project, while project creating, select Sample Activity like Navigation Drawer Activity Or Tabbed Activity. You can create it by selecting.
Or, In existing Project:-
Goto File --> New --> Activity --> Gallery and Select which you want.
Thanks,

How to replace default hamburger icon with custom drawable (Used latest NavigationView, design support library, tool bar))

I have followed exact steps in the following tutorial for making navigation drawer using design support library. But i want to replace the default hamburger icon (using drawerToggle.syncState()). How can i do it?
https://github.com/codepath/android_guides/wiki/Fragment-Navigation-Drawer
Also I want to make Navigation drawer switch activities instead of fragments. For this, i have made a BaseActivity following above tutorial and extended all other activities from this BaseActivity. I am able to get the result but when a new activity is launched unable to preserve the highlighting of selected item in navigation drawer. Please suggest any solutions?

Creating a Navigation Drawer

In developer.android training there is an explnation on how to create Navigation Drawer http://developer.android.com/training/implementing-navigation/nav-drawer.html.
there is a sample app in this tuturial --> http://developer.android.com/shareables/training/NavigationDrawer.zip .
in eclipse you can also create Navigation Drawer (file->new->android application project....->Navigation Drawer activity).
in eclipse Navigation Drawer activity there is a NavigationDrawerFragment class , but in the sample app they use ListView
my question is why the sample app and eclipse Navigation Drawer activity are so diffrent (Although they have the same functionality)?
what is the use of NavigationDrawerFragment class? why to use Fragement ( instead of ListView like in the sample app)?
I never work with NavigationDrawerFragment. I think its hard or etc. If you want real Navigation Drawer go to this link=
http://www.androidhive.info/2013/11/android-sliding-menu-using-navigation-drawer/
Here you have and updated Nav Drawer implementation sample according to Material Design. From Google IO 2015 it's recommended to use the Android Support Design library that will make your life easy.

Jfeinstein Sliding Menu over Activity

I use this library to implement slide menu in my app. It works that it push my activity content to left side. I want to Sliding Menu appear OVER my activity content. Is there any way to change appearing of this sliding menu?
Yes you can do it. Instead of that library you have to use Navigation Drawer.
For supporting from android 2.1 you have to use Support Library.
NavigationDrawer using only Android Support Library
https://developer.android.com/design/patterns/navigation-drawer.html
https://developer.android.com/training/implementing-navigation/nav-drawer.html
As you said, Jfeinstein Sliding Menu uses iOS style and push content to the left (with ActionBar)
The recommended way is using Android-styled component: Navigation Drawer. It appears over content and below ActionBar.
https://developer.android.com/training/implementing-navigation/nav-drawer.html
it's only your choise, but in my mind using android recommended way is prefer

Categories

Resources