Code example for LinkedList

Methods: addFirst

0
	} 
 
	protected void recycleView(View v) {
		if (v == null)
			return; 
		mRecycledViews.addFirst(v);
		detachViewFromParent(v);
	} 
 
	protected View getRecycledView() {
		return (mRecycledViews.isEmpty() ? null : mRecycledViews.remove());
	} 
 
	@Override 
	public void setSelection(int position) {
		mNextScreen = INVALID_SCREEN;
		mScroller.forceFinished(true);
		if (mAdapter == null)
			return; 
		 
		position = Math.max(position, 0);