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

drawable resources versus xml (suggestion) #12

Open
branscha opened this issue Apr 12, 2018 · 1 comment
Open

drawable resources versus xml (suggestion) #12

branscha opened this issue Apr 12, 2018 · 1 comment

Comments

@branscha
Copy link

At first, I could not get the widget working for api 23 marshmallow. The vector graphics were in the res/drawable. It worked fine for api 24 nougat though. I got the error message "resource not found" on api 23.

The solution was to put the vector xml in the res/xml folder instead. Now the XML parser can find the resources on bot api 23 and 24. I noticed that the Android build system modifies the drawables directory name, it attaches -v23 or -v24 to the directory name while creating the apk.

Maybe the documentation should mention that the res/xml is a better location for the vector images then the drawables for the widget? What are your thoughts?

@harjot-oberai
Copy link
Owner

harjot-oberai commented May 11, 2018

Well, honestly I didn't test on API 23 and didn't know that such an error could arise.

I will add your suggestion in the README.

Thanks.

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