Code example for ViewPager

Methods: getAdapter, getChildCount

0
		mObjs.put(Integer.valueOf(position), obj);
	} 
	 
	public View findViewFromObject(int position) {
		Object o = mObjs.get(Integer.valueOf(position));
		if (o == null) {
			return null; 
		} 
		PagerAdapter a = getAdapter();
		View v;
		for (int i = 0; i < getChildCount(); i++) {
			v = getChildAt(i);
			if (a.isViewFromObject(v, o))
				return v;
		} 
		return null; 
	} 
	 
}