SkillAgentSearch skills...

AndroidRubberIndicator

A rubber indicator

Install / Use

/learn @liangfeidotme/AndroidRubberIndicator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RubberIndicator

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

<img src="https://cdn.nlark.com/yuque/0/2019/png/124977/1559045910714-8948c8b2-2b86-44a3-a600-a4415db3c01f.png" width=400px />

A rubber indicator for ViewPager

<img src="https://cdn.dribbble.com/users/303234/screenshots/2090803/pageindicator.gif" width="400px" height="300px" />

Usage

The attributes for RubberIndicator are not yet finished. A toy example is provided in sample.

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
View on GitHub
GitHub Stars1.6k
CategoryDevelopment
Updated19d ago
Forks232

Languages

Java

Security Score

90/100

Audited on Mar 13, 2026

No findings