Code example for Adapter

Methods: getItemId

0
		return (adapter == null || position < 0) ? null : adapter.getItem(position);
	} 
 
	public long getItemIdAtPosition(int position) {
		T adapter = getAdapter();
		return (adapter == null || position < 0) ? INVALID_ROW_ID : adapter.getItemId(position);
	} 
 
	@Override 
	public void setOnClickListener(OnClickListener l) {
		throw new RuntimeException("Don't call setOnClickListener for an AdapterView. "
				+ "You probably want setOnItemClickListener instead"); 
	} 
 
	/** 
	 * Override to prevent freezing of any views created by the adapter. 
	 */ 
	@Override 
	protected void dispatchSaveInstanceState(SparseArray<Parcelable> container) {
		dispatchFreezeSelfOnly(container);
	}