java.lang.ClassCastException: android.widget.ImageView cannot be cast to uk.co.senab.photoview.PhotoView

GitHub | wenmingvs | 6 months ago
  1. 0

    【CrashLog】 WeiSwift 2016-07-27 17:15:20:91

    GitHub | 6 months ago | wenmingvs
    java.lang.ClassCastException: android.widget.ImageView cannot be cast to uk.co.senab.photoview.PhotoView
  2. 0

    【CrashLog】 WeiSwift 2016-07-27 17:55:43:957

    GitHub | 6 months ago | wenmingvs
    java.lang.ClassCastException: android.widget.ImageView cannot be cast to uk.co.senab.photoview.PhotoView
  3. 0
    When you have no build parameters, uncheck 'This build is parameterized'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wondering why my app crashes

    Stack Overflow | 3 years ago | Grabrenner
    java.lang.ClassCastException: android.widget.ImageView cannot be cast to android.widget.TextView
  6. 0

    Android app crashes when I try to add listener from another class to MainActivity

    Stack Overflow | 3 years ago | criscodisco
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cannibal_photographer/com.cannibal_photographer.MainActivity}: java.lang.ClassCastException: android.widget.ImageView cannot be cast to com.cannibal_photographer.Boat

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.ImageView cannot be cast to uk.co.senab.photoview.PhotoView

      at com.wenming.weiswift.ui.login.fragment.home.userdetail.adapter.UserPhotoAdapter$ViewHolder.<init>()
    2. com.wenming.weiswift
      HeaderAndFooterRecyclerViewAdapter.onCreateViewHolder
      1. com.wenming.weiswift.ui.login.fragment.home.userdetail.adapter.UserPhotoAdapter$ViewHolder.<init>(UserPhotoAdapter.java:79)
      2. com.wenming.weiswift.ui.login.fragment.home.userdetail.adapter.UserPhotoAdapter.onCreateViewHolder(UserPhotoAdapter.java:46)
      3. com.wenming.weiswift.ui.login.fragment.home.userdetail.adapter.UserPhotoAdapter.onCreateViewHolder(UserPhotoAdapter.java:23)
      4. com.wenming.weiswift.widget.endlessrecyclerview.HeaderAndFooterRecyclerViewAdapter.onCreateViewHolder(HeaderAndFooterRecyclerViewAdapter.java:165)
      4 frames
    3. Android v7
      RecyclerView.onLayout
      1. android.support.v7.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:5464)
      2. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4689)
      3. android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4599)
      4. android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)
      5. android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:528)
      6. android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)
      7. android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)
      8. android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
      9. android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3003)
      10. android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2881)
      11. android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3265)
      11 frames
    4. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:16100)
      2. android.view.ViewGroup.layout(ViewGroup.java:5185)
      2 frames
    5. Android Support v4
      SwipeRefreshLayout.onLayout
      1. android.support.v4.widget.SwipeRefreshLayout.onLayout(SwipeRefreshLayout.java:596)
      1 frame
    6. Android Platform
      ViewGroup.layout
      1. android.view.View.layout(View.java:16100)
      2. android.view.ViewGroup.layout(ViewGroup.java:5185)
      3. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
      4. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
      5. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
      6. android.view.View.layout(View.java:16100)
      7. android.view.ViewGroup.layout(ViewGroup.java:5185)
      8. android.widget.FrameLayout.layoutChildren(FrameLayout.java:639)
      9. android.widget.FrameLayout.onLayout(FrameLayout.java:574)
      10. android.view.View.layout(View.java:16100)
      11. android.view.ViewGroup.layout(ViewGroup.java:5185)
      12. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1959)
      13. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1813)
      14. android.widget.LinearLayout.onLayout(LinearLayout.java:1722)
      15. android.view.View.layout(View.java:16100)
      16. android.view.ViewGroup.layout(ViewGroup.java:5185)
      16 frames
    7. com.wenming.swipebacklayout
      SwipeBackLayout.onLayout
      1. com.wenming.swipebacklayout.SwipeBackLayout.onLayout(SwipeBackLayout.java:402)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:16100)
      2. android.view.ViewGroup.layout(ViewGroup.java:5185)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:639)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:574)
      5. android.view.View.layout(View.java:16100)
      6. android.view.ViewGroup.layout(ViewGroup.java:5185)
      7. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2587)
      8. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2281)
      9. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1329)
      10. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6780)
      11. android.view.Choreographer$CallbackRecord.run(Choreographer.java:818)
      12. android.view.Choreographer.doCallbacks(Choreographer.java:621)
      13. android.view.Choreographer.doFrame(Choreographer.java:584)
      14. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:804)
      15. android.os.Handler.handleCallback(Handler.java:815)
      16. android.os.Handler.dispatchMessage(Handler.java:104)
      17. android.os.Looper.loop(Looper.java:194)
      18. android.app.ActivityThread.main(ActivityThread.java:5691)
      18 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    10. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
      2 frames