Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xamarin Android C#在拖放过程中禁用多点触摸;滴_C#_Android_Xml_Xamarin_Drag - Fatal编程技术网

Xamarin Android C#在拖放过程中禁用多点触摸;滴

Xamarin Android C#在拖放过程中禁用多点触摸;滴,c#,android,xml,xamarin,drag,C#,Android,Xml,Xamarin,Drag,我的拖放功能运行良好,但在拖放过程中,我无法按下按钮或激活其他xml控件,直到拖放结束 我怎样才能解决这个问题 void DraggedControlsMovedToDropZone(object sender, View.DragEventArgs e) { var evt = e.Event; switch (evt.Action) { case DragAction.Ended:

我的拖放功能运行良好,但在拖放过程中,我无法按下按钮或激活其他xml控件,直到拖放结束

我怎样才能解决这个问题

    void DraggedControlsMovedToDropZone(object sender, View.DragEventArgs e)
    {
        var evt = e.Event;
        switch (evt.Action)
        {
            case DragAction.Ended:
            case DragAction.Started:
                e.Handled = true;
                break;

            // the dragged control enter the drop zone
            case DragAction.Entered:
            {
                 //do stuff
            }
            break;

            // the dragged control exit the drop zone
            case DragAction.Exited:
            {
                //do stuff
            }
            break;
        }
    }

您的用户真的需要在拖放过程中与其他UI元素交互吗?这是其他应用程序允许的吗?@Jason如果拖动元素,请向用户询问输入选项。我的拖放操作就像操纵杆一样。在其他控件上移动xml控件必须允许我与视图交互。