I am using drag/drop to move rows in a listview. Each Listview row has an Entry control and a button control. When I LongClick the Entry element of the ListView row, the Entry control is selected. I want OnItemLongClick event to select the ListView row for dragging not the Entry control. Can I force the selection to the Listview row in OnItemLongClick whenever a control element on the ListView item is selected (i.e. Entry element of the ListView item)?

    public bool OnItemLongClick (Android.Widget.AdapterView parent, Android.Views.View view, int position, long id)
    {
        object selectedItem = ((IList)Element.ItemsSource) [(int)id];
        if (view.Parent is Android.Widget.ListView)
        {
            TemporalObject tmpObj = new TemporalObject(view, selectedItem);
            ClipData data = ClipData.NewPlainText(string.Empty, string.Empty);
            DragShadowBuilder shadowBuilder = new global::Android.Views.View.DragShadowBuilder(view);

            view.StartDragAndDrop(data, shadowBuilder, tmpObj, 0);

            return true;
        }
        else
        {
      // I want code here to select the ListView row for Drag/Drop
        }
        return false;
    }

0 Answers