Search in sources :

Example 1 with LoopViewPager

use of com.imbryk.viewPager.LoopViewPager in project CircleIndicator by ongakuer.

the class LoopViewPagerFragment method onViewCreated.

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    LoopViewPager viewpager = (LoopViewPager) view.findViewById(R.id.viewpager);
    CircleIndicator indicator = (CircleIndicator) view.findViewById(R.id.indicator);
    viewpager.setAdapter(new SamplePagerAdapter());
    indicator.setViewPager(viewpager);
}
Also used : LoopViewPager(com.imbryk.viewPager.LoopViewPager) CircleIndicator(me.relex.circleindicator.CircleIndicator) SamplePagerAdapter(me.relex.circleindicator.sample.SamplePagerAdapter)

Aggregations

LoopViewPager (com.imbryk.viewPager.LoopViewPager)1 CircleIndicator (me.relex.circleindicator.CircleIndicator)1 SamplePagerAdapter (me.relex.circleindicator.sample.SamplePagerAdapter)1