Code example for SparseArray

Methods: appendget

0
		else 
			return mViewCache.removeFirst();
	} 
 
	private View getOrCreateChild(final int i) {
		View v = mChildViews.get(i);
		if (v == null) {
			v = mAdapter.getView(i, getCached(), this);
			addAndMeasureChild(i, v);
		} 
		onChildSetup(i, v);
 
		return v;
	} 
 
	private void addAndMeasureChild(final int i, final View v) {
		LayoutParams params = v.getLayoutParams();
		if (params == null) {
			params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
		} 
		addViewInLayout(v, 0, params, true);
		mChildViews.append(i, v);
		measureView(v);
	} 
 
	private void measureView(final View v) {
		v.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);