List of usage examples for android.widget AdapterView setOnItemLongClickListener
public void setOnItemLongClickListener(OnItemLongClickListener listener)
From source file:com.androidquery.AbstractAQuery.java
/** * Register a callback method for when an item is long clicked in the ListView. * * @param listener The callback method.//from w w w .java 2 s . com * @return self */ public T itemLongClicked(OnItemLongClickListener listener) { if (view instanceof AdapterView) { AdapterView<?> alv = (AdapterView<?>) view; alv.setOnItemLongClickListener(listener); } return self(); }