0

May i know the name of the below placed image control, also please tell me how to implement similar control in my application.

This control appears, after long press on contact image.

enter image description here

Naruto
  • 9,476
  • 37
  • 118
  • 201
  • That's an HTC device - correct? Technically speaking it's a Context Menu but it's specific to the HTC Sense UI and the library isn't publically accessible for devs to use. You could do a search on 'custom context menu' or a similar phrase. – Squonk May 19 '12 at 17:42
  • Its Sony Ericsson phone control – Naruto May 19 '12 at 17:47
  • Oh, OK. I stand corrected but it's very similar to what I see on my HTC Desire. – Squonk May 19 '12 at 18:25
  • Yes, both are having similar controls, its very useful control. For developers android should provide a default control of this sort. – Naruto May 19 '12 at 19:22

2 Answers2

1

It's called a Quick Actions Popup, and it's not default for the framework... you have to create it yourself.

Another SO question asks about it and the answers have several links to pages telling you how to do it (there's even a couple of code repositories you could download in there).

Good luck.

Community
  • 1
  • 1
Barak
  • 16,318
  • 9
  • 52
  • 84
0

That is not a built-in control, but it's not difficult to roll your own.

All you need are some nicely crafted images, the outer part can be a LinearLayout, which contains another LinearLayout, which in turn contains 3 Buttons, and you are done with the UI of the control.

The rest of the implementation is to calculate the coordinates to place this control.

neevek
  • 11,760
  • 8
  • 55
  • 73