Back to project page AndroidImageSlider.
The source code is released under:
MIT License
If you think the Android project AndroidImageSlider listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.daimajia.slider.library.Tricks; /*from ww w. j av a 2s. c o m*/ import android.content.Context; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.util.AttributeSet; /** * A {@link ViewPager} that allows pseudo-infinite paging with a wrap-around effect. Should be used with an {@link * InfinitePagerAdapter}. */ public class InfiniteViewPager extends ViewPagerEx { public InfiniteViewPager(Context context) { super(context); } public InfiniteViewPager(Context context, AttributeSet attrs) { super(context, attrs); } @Override public void setAdapter(PagerAdapter adapter) { super.setAdapter(adapter); } }