I need to create a sliding menu. The case is, this is not like the day to day sliding menus we find, this is bit different.
As in the above image, the menu "opener" should be at the bottom of the screen. This is always visible. You can see this "menu opener" in grey colour.
When the user touches on this grey colour bar and slides up, it should open themenu like following.
I visited SlidingMenu project and this does not contains what I am seeking for, because, the menu is invisible until you slide. But in my case, the "menu opener(grey colour bar") is always visible.
How can I do something like this?
check SlidingDrawer tutorial. you can adjust the drawer as you desire as well.
Related
normally when the menu button is pressed , the menu appears from the center bottom of the screen. Is there a way to make it appear from sides.
On Android 3.0 and higher, items from the options menu are presented by the action bar which is standard way to provide access to menus and normally menus appears from top right corner. You should go through this once:
Menus Action Bar
I am trying to add few menu Items on my action Bar.
I have 5 buttons and 1 Button for searchView.
If I just put 5 Menu Items , it shows only 4 at the top and blocks away the Text of Action bar.
So I used android:uiOptions="splitActionBarWhenNarrow"
It causes the Actionbar to show on Below as well as Top. But on Bottom action bar, All i can see is 4 Buttons. There is no sign of 5th Button. How can I place 5th Button and an extra search Button on Top bar. Since there is no Menu buttons on top bar now.
Can you post a image friend?
I am guessing that you have to many MenuItems and they are just pushing the 5th away to the right because of the limited space on the action bar. It depends a little bit on what kind of ActionBar you are using, in what target and what version of Android.
Have you considered using a ActionOverflow button for listing the other options?
as the title suggests I'm trying to add code to my app which allows the user to click on an item in the action bar menu which then unfolds a drop down menu (spinner class?) containing a few options such as lamp, tv etc. - each with an icon. The user will then be able to select one of these and drag and drop the icon (or an image representing the icon) to the canvas where it is then drawn. What is the best way to go about this?
If you're referring to the ActionBar overflow menu items, then you would have to take a look at the code for the ActionBar in the framework and extend it in your application, but that would firstly require quite a hassle and secondly would break compatibility when changes are made to the ActionBar in new versions of Android.
Also, this goes completely away from what the ActionBar is intended to be. You should only have actions in the overflow menu, not contain elements that directly interact with the Activity content. It's just wrong. Consider redesigning your UI so that you implement the requested featured inside the content view, not on the ActionBar.
In my app,first activity if we click one button it should open sencond activity with transparence only at the end some part. So when we are in second activity, the content of first activity should visible some part. Its like exactly Flipboard style menu in android, in flip board if we click top red button we will get another screen in that we can visible previous screen at the bottom like this i need. If any one having ideas please share with me how to do flip board style menu.
Use Fragments for this problem that's what they are made for.
If you want to use API 8, I still recomment Fragments but then you need to use ActionBarSherlock it provides you with all features you need.
I have a program in which I have a large amount of items listed under a specific submenu. I am looking for a way to scroll through them, as the menu is now larger then the screen. Previously i have seen menus in which the top and bottom icons are arrows which, when the mouse hovers over, scroll up or down respectively. Can someone please explain to me how to do this? Or else simply how to add a scrollbar to my submenu?
Thanks!
Another option might be Darryl's Menu Scroller.