android - Opening a context menu without registering the view -


I registerForContextMenu () ? How to open a context menu for a scene without registering using

Overrides onTouchEvent to detect my activity speed, and if I If using registerForContextMenu () , it stops the work. I am locating a long press, so I would like to forward that request to the method that prepares the menu for me, but it does not know that it can work like that.

I believe that you manually move your activity to a view at the time of layout initialization You can use the context menu as the provider, and after that, once you see the Call menu, find a long press to call it through your onCreateContextMenu call Just like you register it in a normal way.

EDIT: OK, for this, touching the event listener has the same effect. Given this view, the only solution I can think of is to create a hidden scene and that < / Em> Ask to register the context menu viewer of the scene, and then show a context menu above it, when a long touch real / visible view is seen on it.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -