3

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:

enter image description here

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

tshepang
  • 12,111
  • 21
  • 91
  • 136
Eric Bergman
  • 1,453
  • 11
  • 46
  • 84

4 Answers4

5

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.

Andy Res
  • 15,963
  • 5
  • 60
  • 96
4

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.

Rohit5k2
  • 17,948
  • 8
  • 45
  • 57
Mukesh Garg
  • 711
  • 1
  • 6
  • 20
2

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

tyczj
  • 71,600
  • 54
  • 194
  • 296
0

Maybe this link can help you ;) But instead of sliding use press button.

Making a slide menu

Bada
  • 100
  • 11