public override void onListItemClick (ListView list, View v, int pos, long id) { var item = (Map<String,Object>)list.getItemAtPosition (pos); var monkey = (Monkey)item.get ("monkey"); if (listener != null) listener.onMonkeySelected (monkey); }
protected override void onListItemClick (ListView l, View v, int position, long id) { var item = (Map<String,Object>)l.getItemAtPosition (position); var type = (Type)item.get("type"); var intent = new Intent (this, typeof (TestActivity)); intent.putExtra ("type", type.FullName); startActivity (intent); }