Code example for FragmentPagerAdapter

Methods: destroyItem

0
		return NUM_ITEMS;
	} 
 
	@Override 
	public void destroyItem(android.view.ViewGroup container, int position, Object object) {
		super.destroyItem(container, position, object);
	} 
 
	public void setOnScoreChangedListener(ViewPager viewPager, OnScoreChangedListener listener) {
		this.listener = listener;
		for (Integer i : TABLE) {
			Object objectobject = this.instantiateItem(viewPager, i);
			if (objectobject != null)
				try { 
					((FragmentsWithOnScoreChangeListener) objectobject).setOnScoreChangedListener(listener);
				} catch (Exception e) {
					// Log.i(TAG, "no more Fragment in FragmentPagerAdapter"); 
				} 
		} 
	} 
Contextual code suggestions in your IDE  Get Codota for Java