Skip to content

Latest commit

 

History

History
73 lines (61 loc) · 2.37 KB

File metadata and controls

73 lines (61 loc) · 2.37 KB

Indicators Step ui lib

License Download

This library can fast and easy develop indicators and step progress ui.

ScreenShot

ScreenShot

Java Code

        StepProgress mStepProgress = (StepProgress) findViewById(R.id.step_progress);
        
        mStepProgress.setDotCount(5);

Xml Code

        <com.cheekiat.indicatorsteplib.StepProgress
            android:id="@+id/indicators_progress"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            stepUi:indicator_mode="indicators" />

        <com.cheekiat.indicatorsteplib.StepProgress
            android:id="@+id/step_progress"
            android:layout_width="wrap_content"
            android:layout_margin="16dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center_horizontal"
            stepUi:indicator_mode="step" />

How to use?

Java

Public methods Description
selected(int position) Set select dot.
setDotsOnClickListener(DotOnClickListener onClickListener) Add click dot listener.
setupWithViewPager(ViewPager mViewPager) Auto change selected dot by view page position

Xml

XML attributes Description
app:dotDefaultSize Set default dot size.
app:dotSelectedSize Set selected dot size.
app:itemMargins Set margins between dot.
app:mode Set display mode indicators, step.
app:selectedDotColor Set selected dot color.
app:unselectDotColor Set unselect dot color.
app:barHeight Set step bar height.
app:unselectTextColor Set step text size.

Download

repositories {
  mavenCentral() // jcenter() works as well because it pulls from Maven Central
}

dependencies {
 compile 'com.cheekiat:indicatorsteplib:1.9'
}

License