Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 685 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 685 Bytes

SlideIndicator

Indicator for viewpager which you can drag around.

It come from dribbble.

Usage

Initialize your viewpager and set it into SlideIndicator.

@Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    SlideIndicator indicator = (SlideIndicator) findViewById(R.id.indicator);
    ViewPager pager = (ViewPager) findViewById(R.id.pager);
    pager.setAdapter(new TabPagerAdapter(getSupportFragmentManager()));
    indicator.setViewPager(pager);
  }

It is like:

SlideIndicator

have fun.