Code example for PagerAdapter

Methods: setPrimaryItem

0
	 * (non-Javadoc) 
	 * @see android.support.v4.view.PagerAdapter#setPrimaryItem(android.view.ViewGroup, int, java.lang.Object) 
	 */ 
	@Override 
	public void setPrimaryItem(ViewGroup container, int position, Object object) {
		super.setPrimaryItem(container, position, object);
		 
		parent.onPageChanged(container, position);
	} 
	 
	/* 
	 * (non-Javadoc) 
	 * @see android.support.v4.view.PagerAdapter#getCount() 
	 */ 
	@Override 
	public int getCount() { 
		return image.length;
	} 
	 
	/* 
Experience pair programming with AI  Get Codota for Java