A rubber indicator

Overview

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
Comments
  • How can I get which indicator is currently focusing?

    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.

    opened by umangce 1
  • Add a Gitter chat badge to README.md

    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.

    opened by gitter-badger 0
  • Add a Gitter chat badge to README.md

    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.

    opened by gitter-badger 0
  • indicator.setViewPager(viewPager) set twice exception

    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)

    opened by LiuDeng 0
  • Resource merge conflicts

    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

    opened by vdubedout 0
  • RubberIndicator with view pager

    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?

    opened by athirasanthosh 3
  • Transition offset setter

    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

    opened by HugoGresse 0
  • Upload it on jCenter

    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

    opened by HugoGresse 2
  • Indicator position issue

    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

    opened by joseph27 2
Owner
Fei Liang
微信公众号「老梁写代码」
Fei Liang
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

Maksym Dybarskyi 1.1k Dec 26, 2022
MaterialLoadingProgressBar provide a styled ProgressBar which looks like SwipeRefreshLayout's loading indicator(support-v4 v21+)

MaterialLoadingProgressBar MaterialLoadingProgressBar provide a styled ProgressBar which looks like SwipeRefreshLayout's loading indicator(support-v4

lsjwzh 1.1k Nov 19, 2022
Android - An action bar item which acts both as a refresh button and as a progress indicator

RefreshActionItem An action bar item that implements this common pattern: Initially it shows a refresh button. If the button is clicked, a background

Manuel Peinado Gallego 655 Nov 10, 2022
This lib can be used for viewpager infinite loop with indicator easily.

InfiniteIndicator This project is inspired by the android-auto-scroll-view-pager of Trinea. Use the salvage lib implement view recycle adapter.It cont

lightSky 489 Sep 8, 2022
A 'Google Fit' like activity indicator for Android

WheelIndicatorView A 'Google Fit' like activity indicator for Android Screenshots Usage How to use: Add a "WheelIndicatorView" in the layout editor li

David Lázaro 396 Nov 25, 2022
:barber: [Android Library] Stacked dual progress indicator progress-bar

StackedHorizontalProgressBar Specs Featured in Show some ❤️ Android library with ability to show two progress indicators in one horizontal progress ba

Nishant Srivastava 98 Nov 11, 2022
A lightweight circular indicator view library for Android

A lightweight circular indicator view library for Android

İbrahim Süren 241 Dec 30, 2022
Indicator like tachometer View Library for Android

Tachometer Android Indicator like tachometer View Library for Android GIF Sample Preview Setup Step 1. Add Jitpack repository to your project build.gr

null 1 Jul 28, 2022
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

Fei Liang 1.6k Dec 16, 2022
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

Fei Liang 1.6k Dec 16, 2022
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

baoyachi. Aka Rust Hairy crabs 4.1k Dec 30, 2022
Android Rubber Picker Library

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

Chrisvin Jem 547 Jan 5, 2023
Use Android as Rubber Ducky against another Android device

Use Android as Rubber Ducky against another Android device

null 1.4k Jan 9, 2023
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

Andreas Stütz 121 Sep 10, 2022
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

Jake Wharton 10.2k Dec 26, 2022
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' }

relex 4.1k Jan 5, 2023
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

Jake Wharton 10.2k Jan 3, 2023
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

null 2.4k Feb 21, 2022
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

JPARDOGO 2.2k Jan 4, 2023
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

Maksym Dybarskyi 1.1k Dec 26, 2022