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.
Related
I would like to reproduce the same behavior as the 2017 Youtube menu.
Everything works fine but there is a quick animation of the bottom navigation view when the action bar is hiding/showing (quick slide up/down). I want to keep a fixed navigation view who's not affected by action bar animation show/hide.
Thanks,
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.
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()
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
I am using both actionbarsherlock and slidingmenu objects
the point is, I want my menu - which is sliding to do the following
push the currently visible screen aside, along with its actionbar
the fragment that is displayed inside the menu to have a different actionbar
how do i do that?
I've set everything to make 1 work
but the fragment is missing the menu - how to add it ?
You can't have multiple ActionBar in the same activity.
Best thing you could probably do, is not make the ActionBar slide with the menu, while starting/finishing an ActionMode when you open up/close the sliding menu.
Or if you really want to slide the ActionBar, then simply create a view in the menu fragment that will looks like an action bar.
You probably can use a custom layout in your actionbar and manipulate it by adding an animation so that it looks like the actionbar slides out and it is pushed by another actionbar when the menu slides in. The object would be the same, but the user perception will be of a sliding action bar pushing away the previous one.