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
I don't understand why it;s null since I've already assigned it a value.
Yes. You did => null. The problem is elsewhere. See docs for decodeResource():
Returns: The decoded bitmap, or null if the image could not be decoded.
so you need to a) always check for that condition, b) check why exactly it happens with the data you try to decode.