java.lang.IllegalStateException: Page can only be offset by a positive amount, not by -940
at androidx.viewpager2.widget.ScrollEventAdapter.updateScrollEventValues(ScrollEventAdapter.java:280)
at androidx.viewpager2.widget.ScrollEventAdapter.onScrolled(ScrollEventAdapter.java:178)
at androidx.recyclerview.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:5183)
at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5348)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1132)
at android.view.Choreographer.doCallbacks(Choreographer.java:943)
at android.view.Choreographer.doFrame(Choreographer.java:850)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1118)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7012)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:937)
java.lang.IllegalStateException: Page can only be offset by a positive amount, not by -940 at androidx.viewpager2.widget.ScrollEventAdapter.updateScrollEventValues(ScrollEventAdapter.java:280) at androidx.viewpager2.widget.ScrollEventAdapter.onScrolled(ScrollEventAdapter.java:178) at androidx.recyclerview.widget.RecyclerView.dispatchOnScrolled(RecyclerView.java:5183) at androidx.recyclerview.widget.RecyclerView$ViewFlinger.run(RecyclerView.java:5348) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1132) at android.view.Choreographer.doCallbacks(Choreographer.java:943) at android.view.Choreographer.doFrame(Choreographer.java:850) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1118) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7012) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:937)
<com.scwang.smart.refresh.layout.SmartRefreshLayout android:id="@+id/refreshLayout" android:layout_width="match_parent" android:layout_height="match_parent">
addHeader Banner 的时候报错。BaseRecyclerViewAdapterHelper 把banner加进头部的时候报错。看异常像是动画导致的崩溃 2.6.6没事