You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class MyImgAdapter extends FragmentPagerAdapter {
private int mCount = 4;
private int sliderPosition = 0;
public MyImgAdapter(FragmentManager fms) {
super(fms);
}
@Override
public Fragment getItem(int position) {
sliderPosition = position;
if (position == 0) {
return new FirstSlide();
} else if (position == 1) {
return new SecondSlide();
} else if (position == 2) {
return new ThirdSlide();
} else {
return new FourthSlide();
}
}
How do I setup an image page adapter for my pager
The text was updated successfully, but these errors were encountered: