How can I slide the layout with action bar? - android

How can I slide the layout with action bar ?
Right now my navigation drawer list just appear below the action bar, but I want it to overlap the action bar onclick of navigation drawer icon; can I do this?

For this you can use sliding pane layout
Here is a link
https://github.com/cricklet/Android-PanesLibrary/tree/master/example
you can slide the layout with action bar
you have to make a sliding pane and then navigation drawer in the 2nd view
which you will get after implement this example
and here is the link for navigation drawer
http://www.codeofaninja.com/2014/02/android-navigation-drawer-example.html
combine these examples
it can help you a lot!!

Navigation drawer usually stays below action bar so you can slide it out or open it via the navigation button. Based on the image you posted, I think you should use this well-known lib: https://github.com/jfeinstein10/SlidingMenu.
It takes some steps to set up but when you're done you can customize it the way you want easily. The author also provided demo on Google Play Store and Youtube for you to review.

Related

Creating a collapsible side bar - Alternative to navigation drawer?

I'm trying to create a collapsible side bar with buttons. Is there another alternative to NavigationDrawer, or is that the best choice for this design? I've also noticed Navigation Drawer doesn't have a thumbnail button that you can click to expand it.
What I'm trying to create:

Top-Down navigation drawer

following image is a top down sliding navigation drawer (after click on navigation icon action bar become to menu), how can I modify navigation drawer to be something like this? is there any library for it?
thanks.
You could try to use a "reversed" Bottom Sheet component and fill it with a custom ListView as a menu.
I've found this repository on github for building a "top sheet", hope it helps!

Slide Menu from action bar

I want to know how can implement a slide menu from action bar, something like this app.
A slide menu from top of app with a play buttom.
RMF FM
If there are library or a orientation how can I do it
Do not use Action Bar but implement a view that looks like one and has this sliding part.

how does navigation drawer cover actionbar?

I want to make to cover action bar when navigation drawer appears.
but i know only to stay action bar when navigation drawer appears.(and i know that this is standard form at google)
i didn’t find stackoverflow perfectly, because I cannot speak english well.
Now i made (picture 1)form, How do i want to make to cover action bar when navigation drawer appears as (pic2) form?
pic 1 : https://imageshack.com/i/ex3qfeOIp
pic 2: https://imageshack.com/i/p88OOwyTp
Its kind of easy.First u need to add listener to your navigation drawer setDrawerListener in that u make a listener of DrawerListener class. This class has methods onDrawerClosed() and onDrawerOpened(). In these methods u can hide the action bar or choose to show the action bar appropriately using getActionBar().hide() or getActionBar().show()

Navigation Drawer toggle button

I've setup up a navigation drawer in my android App. I would like to add a button to the left but not in the action bar, because I don't have action bar. What I want to do is a button which can be taken and swiped to open the menu.
In the doc : http://developer.android.com/training/implementing-navigation/nav-drawer.html#ActionBarIcon I don't want to use the app icon, but my own button.
Is it possible ?
With this library you can do exactly what you want. It's easy to implement and use.
https://github.com/jfeinstein10/SlidingMenu

Categories

Resources