Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use VectorDrawable instead of Bitmap? #169

Open
sebasira opened this issue Oct 21, 2020 · 2 comments
Open

Is it possible to use VectorDrawable instead of Bitmap? #169

sebasira opened this issue Oct 21, 2020 · 2 comments

Comments

@sebasira
Copy link

I want to use vector drawables instead of images for the DONE and REVERT images, but I'm not able to make it. Also try to convert VectorDrawable to Bitmap with no luck.

@jankowskib
Copy link

If you use Kotlin try
ContextCompat.getDrawable(context, R.drawable.vector).toBitmap()

@sebasira
Copy link
Author

sebasira commented Dec 1, 2020

I'm using Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants