Code example for ViewPager

Methods: addViewremoveView

0
			downloadschlange.add(input);
		} 
 
		ViewPager tmp = (ViewPager) collection;
 
		tmp.removeView((ScrollView) view_cach[position].getParent());
 
		oldpos = position;
 
		ScrollView scr = new ScrollView(context);
		scr.addView(view_cach[position]);
		tmp.addView(scr);
 
		return scr;
 
	} 
 
	@Override 
	public boolean isViewFromObject(View view, Object object) {
		return view == (View) object;
Connect your IDE to all the code out there  Get Codota for Java