use of me.relex.circleindicator.sample.SamplePagerAdapter in project CircleIndicator by ongakuer.
the class CustomAnimationFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
ViewPager viewpager = (ViewPager) view.findViewById(R.id.viewpager);
CircleIndicator indicator = (CircleIndicator) view.findViewById(R.id.indicator);
viewpager.setAdapter(new SamplePagerAdapter());
indicator.setViewPager(viewpager);
}
use of me.relex.circleindicator.sample.SamplePagerAdapter in project CircleIndicator by ongakuer.
the class DefaultFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
ViewPager viewpager = (ViewPager) view.findViewById(R.id.viewpager);
CircleIndicator indicator = (CircleIndicator) view.findViewById(R.id.indicator);
viewpager.setAdapter(new SamplePagerAdapter());
indicator.setViewPager(viewpager);
viewpager.setCurrentItem(2);
}
use of me.relex.circleindicator.sample.SamplePagerAdapter 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);
}
use of me.relex.circleindicator.sample.SamplePagerAdapter in project CircleIndicator by ongakuer.
the class SnackbarBehaviorFragment method onViewCreated.
@Override
public void onViewCreated(final View view, @Nullable Bundle savedInstanceState) {
ViewPager viewpager = (ViewPager) view.findViewById(R.id.viewpager);
CircleIndicator indicator = (CircleIndicator) view.findViewById(R.id.indicator);
viewpager.setAdapter(new SamplePagerAdapter());
indicator.setViewPager(viewpager);
mSnackbar = Snackbar.make(view.findViewById(R.id.coordinator_layout), "Snackbar", Snackbar.LENGTH_SHORT);
view.findViewById(R.id.button).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!mSnackbar.isShown()) {
mSnackbar.show();
} else {
mSnackbar.dismiss();
}
}
});
}
use of me.relex.circleindicator.sample.SamplePagerAdapter in project CircleIndicator by ongakuer.
the class ChangeColorFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
ViewPager viewpager = (ViewPager) view.findViewById(R.id.viewpager);
CircleIndicator indicator = (CircleIndicator) view.findViewById(R.id.indicator);
viewpager.setAdapter(new SamplePagerAdapter());
indicator.setViewPager(viewpager);
}
Aggregations