BitmapFactory.decodeResource() returns null for shape defined in xml drawable

后端 未结 4 1415
有刺的猬
有刺的猬 2020-12-14 14:25

I looked through multiple similar questions, although I haven\'t found proper answer on my query.

I have a drawable, defined in shape.xml



        
4条回答
  •  一生所求
    2020-12-14 14:57

    You may have put .xml into directory:.../drawable-24, and try to put it into .../drawable instead.

    it works for me, hope this can help someone.

提交回复
热议问题