A rubber indicator

Last update: Aug 8, 2022

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.

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

GitHub

https://github.com/LyndonChin/AndroidRubberIndicator
Comments
  • 1. How can I get which indicator is currently focusing?

    Hi Lyndon Chin,

    Your work is awesome friend. Just I want to know that if there are three indicators if users select 3rd one then how can we know that? And if i want to focus on 3rd indicator directly that thing how can i achieve?

    Thanks.

    Reviewed by umangce at 2015-07-09 13:12
  • 2. Add a Gitter chat badge to README.md

    LyndonChin/AndroidRubberIndicator now has a Chat Room on Gitter

    @LyndonChin has just created a chat room. You can visit it here: https://gitter.im/LyndonChin/AndroidRubberIndicator.

    This pull-request adds this badge to your README.md:

    Gitter

    If my aim is a little off, please let me know.

    Happy chatting.

    PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

    Reviewed by gitter-badger at 2016-04-18 04:41
  • 3. Add a Gitter chat badge to README.md

    LyndonChin/AndroidRubberIndicator now has a Chat Room on Gitter

    @LyndonChin has just created a chat room. You can visit it here: https://gitter.im/LyndonChin/AndroidRubberIndicator.

    This pull-request adds this badge to your README.md:

    Gitter

    If my aim is a little off, please let me know.

    Happy chatting.

    PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

    Reviewed by gitter-badger at 2016-04-18 04:41
  • 4. indicator.setViewPager(viewPager) set twice exception

    12-17 09:50:04.638 12608-12608/? A/MobUncaughtExceptionHandler: null java.lang.NullPointerException at android.animation.AnimatorSet$AnimatorSetListener.onAnimationEnd(AnimatorSet.java:744) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1012) at android.animation.ValueAnimator.access$400(ValueAnimator.java:51) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:623) at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:639) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749) at android.view.Choreographer.doCallbacks(Choreographer.java:562) at android.view.Choreographer.doFrame(Choreographer.java:531) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method) 12-17 09:50:04.646 12608-12608/? E/AndroidRuntime: FATAL EXCEPTION: main java.lang.NullPointerException at android.animation.AnimatorSet$AnimatorSetListener.onAnimationEnd(AnimatorSet.java:744) at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1012) at android.animation.ValueAnimator.access$400(ValueAnimator.java:51) at android.animation.ValueAnimator$AnimationHandler.doAnimationFrame(ValueAnimator.java:623) at android.animation.ValueAnimator$AnimationHandler.run(ValueAnimator.java:639) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749) at android.view.Choreographer.doCallbacks(Choreographer.java:562) at android.view.Choreographer.doFrame(Choreographer.java:531) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735) at android.os.Handler.handleCallback(Handler.java:725) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5041) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) at dalvik.system.NativeStart.main(Native Method)

    Reviewed by LiuDeng at 2015-12-17 01:56
  • 5. Resource merge conflicts

    Hi,

    I'm doing a blog post about different ViewPagerIndicators and was planning to talk about this lib.

    The problem is that I'm already using a StateList "@drawable/indicator_background" and the merging process destroys the one from the library.

    I will change my drawable name but the drawable from this library should use a prefix to avoid this kind of problems.

    https://developer.android.com/studio/projects/android-library.html#Considerations

    Reviewed by vdubedout at 2016-10-24 01:11
  • 6. RubberIndicator with view pager

    I need to integrate view pager and when I swipe the view pager I need to move RubberIndicator according to the viewpager on the page changed. Is it possible?

    Reviewed by athirasanthosh at 2015-09-17 11:10
  • 7. Transition offset setter

    When using ViewPager with this view, the indicator only moved when the ViewPager is selected. It will be great to me able to manually move the indicator position to be between to circle. Something like https://github.com/jpardogo/PagerSlidingTabStrip

    Reviewed by HugoGresse at 2015-08-28 12:32
  • 8. Upload it on jCenter

    Which will be available after with just compile 'com.xxxx:androidruberindicator'

    See https://github.com/HugoGresse/AndroidVuMeter/blob/master/vumeterlibrary/build.gradle for bintray uplaod

    Reviewed by HugoGresse at 2015-08-28 10:16
  • 9. Indicator position issue

    Hello , I have tried to use your indicator with View per and i tried everything possible to make the View page position equal the rubber indicator but i could not make it work. the issue that if the user swipes too fast the rubber will not move fast for instance if the user swipes 3 times quickly the rubber will move only 1 time or twice . i tried to use setFocusPosition(int pos) on view pager pagechangelistner but it does not work after calling setCount

    Reviewed by joseph27 at 2015-07-20 16:07
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Aug 13, 2022
A spring indicator like Morning Routine guide.
A spring indicator like Morning Routine guide.

SpringIndicator An indicator like Morning Routine guide.It was originally based on BezierDemo. The sample app: click me #Usage Add the dependency to y

Feb 21, 2022
An interactive indicator to navigate between the different pages of a ViewPager
An interactive indicator to navigate between the different pages of a ViewPager

Android PagerSlidingTabStrip (default Material Design) This library is not maintained anymore and there will be no further releases. For most of the c

Jul 21, 2022
A Page Indicator Lib is realized in a different way.
A Page Indicator Lib is realized in a different way.

#FlycoPageIndicator A Page Indicator Lib is realized in a different way. Support for Android 2.2 and up. ##Demo ####Here is a DemoApk download ##Gradl

May 27, 2022
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count
Android - A ViewPager page indicator that displays the current page number and (optionally) the page count

NumericPageIndicator A ViewPager page indicator that displays the current page number and (optionally) the page count. It can also display buttons to

Aug 8, 2022
Pager (especially for ViewPager) indicator in two styles: circle & fraction.
Pager (especially for ViewPager) indicator in two styles: circle & fraction.

PagerIndicator Pager (especially for ViewPager) indicator in two styles: circle & fraction. Demo circle fraction Dependency implementation 'me.liangfe

May 11, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Aug 13, 2022
Pager (especially for ViewPager) indicator in two styles: circle & fraction.
Pager (especially for ViewPager) indicator in two styles: circle & fraction.

PagerIndicator Pager (especially for ViewPager) indicator in two styles: circle & fraction. Demo circle fraction Dependency implementation 'me.liangfe

May 11, 2022
A rubber indicator
A rubber indicator

RubberIndicator A rubber indicator for ViewPager Designed by Valentyn Khenkin Here is the CSS version Usage The attributes for RubberIndicator are not

Aug 8, 2022
A rubber indicator
A rubber indicator

RubberIndicator A rubber indicator for ViewPager Designed by Valentyn Khenkin Here is the CSS version Usage The attributes for RubberIndicator are not

Aug 8, 2022
Step by step,just use HorizontalStepView,VerticalStepView. step indicator,flow indicator,timeline,order process,express status
Step by step,just use HorizontalStepView,VerticalStepView. step indicator,flow indicator,timeline,order process,express status

StepView Step by step. Step indicator. Flow indicator。 snapshot like this:HorizontalStepView like this also like this:VerticalStepView Yeah,I am not w

Aug 18, 2022
Android Rubber Picker Library
Android Rubber Picker Library

RubberPicker RubberPicker library contains the RubberSeekBar and RubberRangePicker, inspired by Cuberto's rubber-range-picker. Getting started Setting

Aug 10, 2022
Use Android as Rubber Ducky against another Android device
Use Android as Rubber Ducky against another Android device

Use Android as Rubber Ducky against another Android device

Aug 13, 2022
An interactive indicator to navigate between the different pages of a ViewPager
An interactive indicator to navigate between the different pages of a ViewPager

Android PagerSlidingTabStrip Interactive paging indicator widget, compatible with the ViewPager from the Android Support Library. Try out the sample a

Jun 16, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Aug 13, 2022
A lightweight indicator like in nexus 5 launcher
A lightweight indicator like in nexus 5 launcher

CircleIndicator A lightweight indicator like in nexus 5 launcher Gradle AndroidX dependencies { implementation 'me.relex:circleindicator:2.1.6' }

Aug 8, 2022
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.

Android ViewPagerIndicator Paging indicator widgets that are compatible with the ViewPager from the Android Support Library to improve discoverability

Aug 13, 2022
A spring indicator like Morning Routine guide.
A spring indicator like Morning Routine guide.

SpringIndicator An indicator like Morning Routine guide.It was originally based on BezierDemo. The sample app: click me #Usage Add the dependency to y

Feb 21, 2022
An interactive indicator to navigate between the different pages of a ViewPager
An interactive indicator to navigate between the different pages of a ViewPager

Android PagerSlidingTabStrip (default Material Design) This library is not maintained anymore and there will be no further releases. For most of the c

Jul 21, 2022
Android AlertDialog with moving dots progress indicator

Spots progress dialog Android AlertDialog with moving spots progress indicator packed as android library. =========== Usage The library available in m

Jul 31, 2022