java.lang.ClassCastException: android.widget.HeaderViewListAdapter cannot be cast to me.tatarka.bindingcollectionadapter.BindingListViewAdapter

GitHub | amnsinghl | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Unable to use binding collection adapter when header and footer is added to a list view

    GitHub | 6 months ago | amnsinghl
    java.lang.ClassCastException: android.widget.HeaderViewListAdapter cannot be cast to me.tatarka.bindingcollectionadapter.BindingListViewAdapter

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.HeaderViewListAdapter cannot be cast to me.tatarka.bindingcollectionadapter.BindingListViewAdapter

      at me.tatarka.bindingcollectionadapter.BindingCollectionAdapters.setAdapter()
    2. me.tatarka.bindingcollectionadapter
      BindingCollectionAdapters.setAdapter
      1. me.tatarka.bindingcollectionadapter.BindingCollectionAdapters.setAdapter(BindingCollectionAdapters.java:27)[na:0.0]
      1 frame
    3. to.go.databinding
      ContentDrawerBinding.executeBindings
      1. to.go.databinding.ContentDrawerBinding.executeBindings(ContentDrawerBinding.java:142)[na:0.0]
      1 frame
    4. android.databinding
      ViewDataBinding$7.doFrame
      1. android.databinding.ViewDataBinding.executePendingBindings(ViewDataBinding.java:355)[na:0.0]
      2. android.databinding.ViewDataBinding$6.run(ViewDataBinding.java:172)[na:0.0]
      3. android.databinding.ViewDataBinding$7.doFrame(ViewDataBinding.java:238)[na:0.0]
      3 frames
    5. Android Platform
      ActivityThread.main
      1. android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)[na:0.0]
      2. android.view.Choreographer.doCallbacks(Choreographer.java:670)[na:0.0]
      3. android.view.Choreographer.doFrame(Choreographer.java:603)[na:0.0]
      4. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)[na:0.0]
      5. android.os.Handler.handleCallback(Handler.java:739)[na:0.0]
      6. android.os.Handler.dispatchMessage(Handler.java:95)[na:0.0]
      7. android.os.Looper.loop(Looper.java:148)[na:0.0]
      8. android.app.ActivityThread.main(ActivityThread.java:5417)[na:0.0]
      8 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)[na:0.0]
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)[na:0.0]
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)[na:0.0]
      2 frames