Code example for SparseArray

Methods: clear

0
	} 
 
	@Override 
	public void setAdapter(final Adapter adapter) {
		mAdapter = adapter;
		mChildViews.clear();
		removeAllViewsInLayout();
		requestLayout();
	} 
 
	@Override 
	public void setSelection(final int arg0) {
		throw new UnsupportedOperationException("Not supported");
	} 
 
	private View getCached() {
		if (mViewCache.size() == 0)
			return null; 
		else 
			return mViewCache.removeFirst();
Experience pair programming with AI  Get Codota for Java