Code example for ViewPager

Methods: addView

1
			return list.size();
		} 
		@Override 
		public Object instantiateItem(View arg0, int arg1) {
			ViewPager pViewPager = ((ViewPager) arg0);
			pViewPager.addView(list.get(arg1));
			return list.get(arg1);
		} 
 
		@Override 
		public void restoreState(Parcelable arg0, ClassLoader arg1) {
 
		} 
 
		@Override 
		public Parcelable saveState() {
			return null; 
		} 
 
		@Override 
Stop searching for code, let great code find you!  Add Codota to your java IDE