I'm trying to set an `OnItemClickListener` for my ListView in Android, but i can't get it to work.

This is what i have so far:

```
public class MenuFragment extends SherlockFragment
{
    ArrayList<Item> items = new ArrayList<Item>();

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                Bundle savedInstanceState)
    {

    ListView list = (ListView)view.findViewById(R.id.list_mainmenu);

    // some code here where i add items to an ArrayList...

    // Then i add the ArrayList to an EntryAdapter
    EntryAdapter adapter = new EntryAdapter(this.getActivity().getBaseContext(), items);

    list.setAdapter(adapter);
    list.setClickable(true);

    list.setOnItemClickListener(AdapterView.OnItemClickListener()) {
        // ...
    }
}

```

But this gives me an error on `OnItemClickListener()`:

> 
> The method OnItemClickListener() is undefined for the type AdapterView.
> 
> 
> 

So my qyestion is, how can i set an `OnItemClickListener` on my ListView??