没有自己的代码,并且这个anr非常的频繁.老师能看一下吗?
at androidx.recyclerview.widget.AdapterHelper.findPositionOffset (AdapterHelper.java:472)
at androidx.recyclerview.widget.AdapterHelper.canFindInPreLayout (AdapterHelper.java:422)
at androidx.recyclerview.widget.AdapterHelper.applyUpdate (AdapterHelper.java:194)
at androidx.recyclerview.widget.AdapterHelper.preProcess (AdapterHelper.java:105)
at androidx.recyclerview.widget.RecyclerView.processAdapterUpdatesAndSetAnimationFlags (RecyclerView.java:3793)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep1 (RecyclerView.java:4039)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout (RecyclerView.java:3849)
at androidx.recyclerview.widget.RecyclerView.onLayout (RecyclerView.java:4404)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1103)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout (SwipeRefreshLayout.java:625)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1103)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at androidx.viewpager.widget.ViewPager.onLayout (ViewPager.java:1775)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1103)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at androidx.viewpager.widget.ViewPager.onLayout (ViewPager.java:1775)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.RelativeLayout.onLayout (RelativeLayout.java:1103)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at androidx.drawerlayout.widget.DrawerLayout.onLayout (DrawerLayout.java:1231)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout (LinearLayout.java:1582)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.LinearLayout.setChildFrame (LinearLayout.java:1829)
at android.widget.LinearLayout.layoutVertical (LinearLayout.java:1673)
at android.widget.LinearLayout.onLayout (LinearLayout.java:1582)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.widget.FrameLayout.layoutChildren (FrameLayout.java:332)
at android.widget.FrameLayout.onLayout (FrameLayout.java:270)
at com.android.internal.policy.DecorView.onLayout (DecorView.java:779)
at android.view.View.layout (View.java:22084)
at android.view.ViewGroup.layout (ViewGroup.java:6330)
at android.view.ViewRootImpl.performLayout (ViewRootImpl.java:3209)
at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2705)
at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:1791)
at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:7867)
at android.view.Choreographer$CallbackRecord.run (Choreographer.java:967)
at android.view.Choreographer.doCallbacks (Choreographer.java:791)
at android.view.Choreographer.doFrame (Choreographer.java:726)
at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:952)
at android.os.Handler.handleCallback (Handler.java:883)
at android.os.Handler.dispatchMessage (Handler.java:100)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:7386)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)