Disable Xamarin Android Context Menu

85 views
Skip to first unread message

Anatoly Kudrevatukh

unread,
Apr 2, 2015, 5:46:23 PM4/2/15
to pdfne...@googlegroups.com
Q:
I need information how to disable the Context Menu. (long tap/hold on the document, then a context menu appear with the options of Note,Signature,Ink,Test, Arrow, Line, Rectangle, Ellipse).

I have to avoid this menu from displaying.

A:
To handle long press events by yourself and disable the built-in logic, you can subscribe to the LongPress event:
        mToolManager.LongPress += mToolManager_LongPress;
        void mToolManager_LongPress(object sender, ToolManager.OnLongPressEventArgs e)
        {
            e.Handled = true;
        }

Reply all
Reply to author
Forward
0 new messages