Skip to content

naseemakhtar994/ViewPagerIndicator-1

 
 

Repository files navigation

ViewPagerIndicator

A viewpager indicator.

Gradle

dependencies {
    compile 'com.github.tabassumLatif:ViewPagerIndicator:1.0.+'
}

Usage

	<tabi.vpindicator.ViewPagerIndicator
		android:id="@+id/vpIndicator"
        android:layout_width="match_parent"
        android:layout_height="48dp"/>
    ViewPager viewpager = (ViewPager) view.findViewById(R.id.viewpager);
    ViewPagerIndicator viewPagerIndicator = (ViewPagerIndicator) view.findViewById(R.id.vpIndicator);
    viewpager.setAdapter(mPageAdapter);
    viewPagerIndicator.setViewPager(viewpager);
Properties:
  • app:vpi_width
  • app:vpi_height
  • app:vpi_margin
  • app:vpi_drawable
  • app:vpi_drawable_unselected
  • app:vpi_animator
  • app:vpi_animator_reverse
  • app:vpi_orientation
  • app:vpi_gravity
  • app:vpi_indicator_per_row