Skip to content

Android View pager position indicator with different built in shapes.

Notifications You must be signed in to change notification settings

mbalajee/ViewPagerIndicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViewPagerIndicator

Android View pager position indicator with different built in shapes.

Installing

Include this project as a module.

Usage

// XML 
<com.company.androidviewpagerindicaor.ViewPagerIndicator
android:id="@+id/viewPagerIndicator"
android:layout_width="wrap_content" 
android:layout_height="wrap_content"
android:layout_gravity="bottom|end" 
app:colorSelected="@color/colorAccent"
app:colorDeselected="@color/colorAccentLight"
app:sizeSelected="10dp"
app:sizeDeselected="10dp"
app:gap="8dp"
app:shape="circle"
android:layout_marginBottom="8dp"/>
// Activity
ViewPagerIndicator pagerIndicator = findViewById(R.id.viewPagerIndicator);
pagerIndicator.attachToViewPager(viewPager);  //viewPager replace with your ViewPager






About

Android View pager position indicator with different built in shapes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages