How to handle a click on the ListView
item from the Activity
in which it was created. Maybe this is a stupid question, but
listview.setOnItemClickListener(new OnItemClickListener(){ public void onItemClick(AdapterView<?> parent,View view,int position,long id){ Toast toast = Toast.makeText(getActivity(),"gaaaaaaa", Toast.LENGTH_SHORT); toast.show(); } });
Does not help. If you call with a regular adapter, it works. But I have a custom one (by the way, if the handler is hung up on the item elements in getView, everything works. But I need to catch a click not in the adapter but in the Activity
.