You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: