RecycleView获取Android支持v7 recycleview的NullPointerException

时间:2015-04-02 10:37:10

标签: android-recyclerview

  

java.lang.NullPointerException at   android.support.v4.view.ViewCompat $ ICSViewCompatImpl.setAccessibilityDelegate(ViewCompat.java:834)     在   android.support.v4.view.ViewCompat.setAccessibilityDelegate(ViewCompat.java:1169)     在   android.support.v7.widget.RecyclerView $ Recycler.addViewHolderToRecycledViewPool(RecyclerView.java:3900)     在   android.support.v7.widget.RecyclerView $ Recycler.recycleCachedViewAt(RecyclerView.java:3843)     在   android.support.v7.widget.RecyclerView $ Recycler.recycleViewHolderInternal(RecyclerView.java:3880)     在   android.support.v7.widget.RecyclerView $ Recycler.recycleView(RecyclerView.java:3804)     在   android.support.v7.widget.RecyclerView $ LayoutManager.removeAndRecycleViewAt(RecyclerView.java:5529)     在   android.support.v7.widget.LinearLayoutManager.recycleChildren(LinearLayoutManager.java:1139)     在   android.support.v7.widget.LinearLayoutManager.recycleViewsFromStart(LinearLayoutManager.java:1180)     在   android.support.v7.widget.LinearLayoutManager.recycleByLayoutState(LinearLayoutManager.java:1244)     在   android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1268)     在   android.support.v7.widget.LinearLayoutManager.scrollBy(LinearLayoutManager.java:1102)     在   android.support.v7.widget.LinearLayoutManager.scrollVerticallyBy(LinearLayoutManager.java:959)     在   android.support.v7.widget.RecyclerView $ ViewFlinger.run(RecyclerView.java:3062)     在   android.view.Choreographer $ CallbackRecord.run(Choreographer.java:761)     在android.view.Choreographer.doCallbacks(Choreographer.java:574)at   android.view.Choreographer.doFrame(Choreographer.java:543)at   android.view.Choreographer $ FrameDisplayEventReceiver.run(Choreographer.java:747)     在android.os.Handler.handleCallback(Handler.java:733)处   android.os.Handler.dispatchMessage(Handler.java:95)at   android.os.Looper.loop(Looper.java:136)at   android.app.ActivityThread.main(ActivityThread.java:5017)at   java.lang.reflect.Method.invokeNative(Native Method)at   java.lang.reflect.Method.invoke(Method.java:515)at   com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:779)     在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)at   dalvik.system.NativeStart.main(原生方法)

0 个答案:

没有答案