How to get a Bitmap from VectorDrawable

前端 未结 2 1445
小鲜肉
小鲜肉 2021-01-02 18:33

I\'m still trying to solve the problem I\'ve had since a couple of days ago and I still have not found a solution. However, I am getting there step by step. Now I h

2条回答
  •  礼貌的吻别
    2021-01-02 19:12

    Use Drawable.toBitmap() from AndroidX support library. VectorDrawable is child of Drawable.

提交回复
热议问题