Code example for Adapter

Methods: getItemViewType

0
		detachViewFromParent(v);
	} 
 
	protected View getRecycledView(int position)
	{ 
		int type = this.mAdapter.getItemViewType(position);
 
		return (mRecycledViews[type].isEmpty() ? null : mRecycledViews[type].remove(0));
	} 
 
	@Override 
	public void setSelection(int position)
	{ 
		mNextScreen = INVALID_SCREEN;
		mScroller.forceFinished(true);
		if (mAdapter == null)
			return; 
 
		position = Math.max(position, 0);
		position = Math.min(position, mAdapter.getCount() - 1);