siralam / LoopingViewPager

A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
532 stars 64 forks source link

Error When Using it Inside Recyclerview #25

Closed irfanirawansukirman closed 4 years ago

irfanirawansukirman commented 4 years ago

Hello,

i got problem when using it inside my recyclerview. the error is:

java.lang.StackOverflowError: stack size 8MB at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7523) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527) at android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:7527)

IDE : Android Studio Stable v3.5.1 Gradle Build : v3.5.1 Gradle Dist : v.5.4.1-all.zip

siralam commented 4 years ago

I don't think it is related to the library. But you can paste your full code here so I may be able to help you