Code example for LinkedList

Methods: get, size

0
 
	private void initializeView(final float direction) {
		if (direction > 0) {
			if (mLazyInit.contains(LazyInit.RIGHT)) {
				mLazyInit.remove(LazyInit.RIGHT);
				if (mCurrentBufferIndex+1 < mLoadedViews.size())
					mViewInitializeListener.onViewLazyInitialize(mLoadedViews.get(mCurrentBufferIndex + 1), mCurrentAdapterIndex + 1);
			} 
		} else { 
			if (mLazyInit.contains(LazyInit.LEFT)) {
				mLazyInit.remove(LazyInit.LEFT);
				if (mCurrentBufferIndex > 0)
					mViewInitializeListener.onViewLazyInitialize(mLoadedViews.get(mCurrentBufferIndex - 1), mCurrentAdapterIndex - 1);
			} 
		} 
	} 
 
	@Override 
	protected void onScrollChanged(int h, int v, int oldh, int oldv) {
		super.onScrollChanged(h, v, oldh, oldv);
		if (mIndicator != null) {