java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.isRecycled()' on a null object reference

前端 未结 6 1425
迷失自我
迷失自我 2021-01-06 01:16

I am trying to implement swipe to delete in RecyclerView. Everything seems to be working fine except drawing a delete icon below the item that\'s being swiped.

Thi

6条回答
  •  生来不讨喜
    2021-01-06 01:35

    Trying to decode a vector drawable into Bitmap, gives such error. So try to use any image with format .png, .jpeg etc in case of decoding resource to Bitmap.

提交回复
热议问题