Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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;
 }