Hi i have implemented a Android sliding menu using navigation drawer with help of WWW.androidhive.info tutorial.
now my question is , is it possible to have sub menus in the sliding menu?
i mean for example assume i have four options in sliding menu "Facebook","twitter","watsup","android". and my question is , if i press on Facebook a sub menu must come in down, with in that i must have some other options , like "photos","places" etc..
when i click on Facebook a drop down menu must appear by pushing down the other items(twitter,watsup,android) in the sliding menu.
(i want sub menu should be shown in the same sliding menu. not in a new sliding menu)
Why not use the expandable list views in the drawer layout : http://developer.android.com/reference/android/widget/ExpandableListView.html
Use ExpandableListView instead of ListView in the navigation drawer.
Related
i want to design a navigation drawer for my app . In it i want various options to go to various activity.
I also want to add some clickable items on title bar which would go to any activity specified.
so, please suggest me direction to proceed.
Best example is add new activity and select "Navigation Drawer Activity"
That use titlebar item for opening menu and swip for opening and closing menu
how to make the bottom navigation menu no select any menu item when startup the application??
i am trying to set
bottomNavigationView.getMenu().getItem(0).setChecked(true);
but this is not working..
this is the layout i want
bottomNavigationView.setSelectedItemId(R.id.myTabId);
You can use this code to select a option programmatically at start.
I use sliding drawer menu in my android project and
I use one drawer menu for all of myActivies
I want in root Activity when click on actionbar`s icon the drawer menu is open!
and in childs Activities when click on actionbar's icon go to parent Activity
like google play or gmail and ...
how I can do this?!
Implement the navigation as usual (with drawertoggle and everything), then call
_toggle.setDrawerIndicatorEnabled(false);
It will hide the drawer icon (the three vertical lines) and display the up caret. The up icon click event will not be handle by the drawer and will finish the activity (if you do so in the OnOptionsItemSelected).
yup, you can use Navigation drawer in the layout and as well as in the java code.
check this url for screenshot
https://developer.android.com/design/media/navigation_drawer_holo_dark_light.png
Currently i am developing an app that needs to have a sliding menu but inside that sliding-menu i want to have a preference activity style like , for example like YouTube app sliding menu style.
I am working with "jfeinstein" sliding menu because i didn't found something else to make the sliding menu and it's not offering a way to make a activity in the sliding menu.
So is there another sliding menu library or is there actually a way to do what i described?
Thanks
I have an Activity that its root element is a DrawerLayout, the DrawerLayout has a ListView child that acts as the left view of the drawer layout.
The question is:
How can I force the left drawer's list view to not close completely ?
I want its closed state to be like the photo below
I am currently using Android's guide to Create a Navigation Drawer.
I am open for any other library - like Sliding Menu - if that accomplishes my goal.
Thanks in Advance.
You can use SlidingPaneLayout, it's similar to NavigationDrawer.
Check this tutorial to find out how to reach it.
Why not just use that far leftmost menu as a fragment within your activity. Upon opening the NAv Drawer, you can still have it show the menus that are 2nd or 3rd level. This is pretty standard for our app, with a menu exposed and further menus available upon opening the drawer