Popularity
7.5
Stable
Activity
3.6
Growing
1,550
59
242

Programming language: Java

RubberIndicator alternatives and similar packages

Based on the "Progressbar/Progress View Widget" category

Do you think we are missing an alternative of RubberIndicator or a related project?

Add another 'Progressbar/Progress View Widget' Package

README

RubberIndicator

Join the chat at https://gitter.im/LyndonChin/AndroidRubberIndicator

A rubber indicator for ViewPager

Usage

The attributes for RubberIndicator are not yet finished. A toy example is provided in [sample](sample/src/main/java/com/liangfeizc/rubberindicator/MainActivity.java).

Introduction

APIs offered by RubberIndicator.

APIs Usage
setCount(int count) Set the count of indicators
setCount(int count, int focusPos) Set the count and specify the focusing indicator
setFocusPosition(int pos) Set focusing indicator
getFocusPosition() Get focusing indicator
moveToLeft() Move the focusing indicator to left
moveToRight() Move the focusing indicator to right

In addition to the APIs listed in the table, RubberIndicator also provides a callback listener - OnMoveListener for the user should be notified when the moving animator finished.

public interface OnMoveListener {
    void onMovedToLeft();
    void onMovedToRight();
}

Me

License

MIT


*Note that all licence references and agreements mentioned in the RubberIndicator README section above are relevant to that project's source code only.