Creating popup menu like in gmail - android

Does anyone have a clue what the best procedure would be to show a menu like this one on the left where you have only icons shown, but when you click on the top "three lines icon" you extend this view over another fragment?
I currently have 2 fragments in a activity shown, like this second and third one on the image, but would like to add that left bar but don't know what would be the best thing to do. Thanks in advance for any info!

Related

sliding menu move content to right before toggling

I'm using the slide menu library and setting the menu offset from a xml.
setBehindOffsetRes(R.dimen.slidingmenu_offset);
when I click the menu item I use
menu.toggle(true);
which moves the content to left with menu behind it. My scenario is when I click the menu item, the content has to move all the way to right and then should bring the content in like the normal way so that the user dont get to see the UI change. I used
setBehindOffsetRes(R.dimen.slidingmenu_fullscreen);
showMenu(true);
where R.dimen.slidingmenu_fullscreen = 0dp. The menu goes to full screen behind the content, but the content doesn't moves to the right. Thanks in advance!
Edit 1: This is similar to Xoom application... Sample "Slide Sample"
I would recommend using ActionBarSherlock. Use this tutorial for sliding menu, It is much easier to use, and you will find much more help with it. It is also more compatible with different screen sizes, and more Android versions.
Finally I figured it myself.
menu.mViewAbove.scrollTo(menu.mViewAbove.getScrollX()-200,0);
moved the content to right. But now got into another problem. which I have descibed here->
https://stackoverflow.com/questions/19714871/sliding-menu-move-content-to-right

How to move menu items from right to left using calabash-android

There are more than 10 menus in my application. If I open this application in android mobile, only 5 menus appear; I than have to swipe from right to left for the remaining menus to appear. Here I have used swipe keyword. But it hasn't worked. Please see my below code:
Scenario Outline: Go to file manager home page
Then I wait for progress
Then I swipe right
Then I select the "Create" tab
Please let me know if anyone knows the solution to this problem. Thanks in advance.
I am not sure if I understand your question correctly, you have some menu items that are not visible on the action bar and you want to click those menu items?

Android: Create a Quick Action Menu

I need to create some type of quick action menu that appears to the right side of the clicked item (button) whenever the user clicks the button.
Here's an example of what I'm trying to achieve:
When the user clicks button1 I want the "sub quick action menu" to appear like it's shown in the image above.
Is there anyway to do this 'natively' in android?
I have found this plugin but it only allows you to show the menu from the top or bottom of the button.
https://github.com/lorensiuswlt/NewQuickAction3D
As tyczj said, you could achieve that with a PopupMenu. The idea is that the popup menu will inflate a custom view with all the elements, having as background a 9 patch image.
Here's a blog post that shows how to do that. Hope it will help you.
You can do the same using Quick Action Menu, for more details you can follow the
"http://www.codeproject.com/Articles/521455/Quick-action-pattern-in-Android-and-simple-impleme"
Link.
In example Items are presented in horizontal manner, whereas you can manage them, like listview as per your requirement.
there is a PopupMenu but there is no arrow or anything pointing to where it came from. Its basically the same thing that comes up when clicking the Overflow actionbar item
Maybe this link can help you ;) But instead of sliding use press button.
Making a slide menu

Dropd down tabs or drop down menus beneath ActionBar in Android

My need is to add a drop down menu like the one shown in attached image link.
http://i.imgur.com/cWtykfN.jpg
I don't know what to be used, whether it is tabs or menus. My need is when I press the last tab/menu, the sub menu should be shown and I could be able to handle the corresponding actions. Even when I handle those menus, I should be able to show the top tab/ menu without interruption.
It's called as overflow menus. Look this example, you will get an idea.
http://wptrafficanalyzer.in/blog/adding-action-items-and-overflow-menu-items-to-action-bar-in-android/
And nice explanation been given here. http://blog.stylingandroid.com/archives/1249 and for source code.ref here: https://github.com/StylingAndroid/StylingActionBar/Tree/StylingPart2
Use the ActionBar with tab-navigation-mode and if the last tab is clicked you could simply trigger a PopupMenu (even though this seems a little weird and is not what I expect to happen when I click tab).

Showing a non-child view in tabBar ... android

I have 3 tabs in a tab bar. On top of the tap bar, I have a button. I want to be able to press the button and change the view, without removing the tab bar. I want to set clear the current tab selection of the tab bar, and want another activity to show, without hiding the tab bar. How can I do that?
Without knowing what your code really looks like there isn't much help we can give you other than some links to some methods that sound like they might help you out...
Take a look at these methods on the ViewGroup class:
ViewGroup.RemoveView()
ViewGroup.RemoveViewAt()

Categories

Resources