void AdapterView.IOnItemSelectedListener.OnItemSelected(AdapterView parent, View view, int position, long id) { if (OnItemSelected != null) { var holder = parent.GetItemAtPosition(position) as ListElementAdapter.ListElementHolder; OnItemSelected(position, view, holder == null ? null : holder.Element); } }
bool AdapterView.IOnItemLongClickListener.OnItemLongClick(AdapterView parent, View view, int position, long id) { if (OnItemLongClick != null) { var holder = parent.GetItemAtPosition(position) as ListElementAdapter.ListElementHolder; return OnItemLongClick(position, view, holder == null ? null : holder.Element); } return false; }