I looked through multiple similar questions, although I haven\'t found proper answer on my query.
I have a drawable, defined in shape.xml
it is a drawable, not a bitmap. You should use getDrawable instead
getDrawable