harjot-oberai / harjot-oberai/VectorMaster
drawable resources versus xml (suggestion)
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 165
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the documentation for widget vector resources and Android API 23 versus API 24 behavior. Verify the reported res/drawable and res/xml placement details, then update the relevant guidance if appropriate. Done means the documentation clearly explains where these vector XML files should be placed for supported Android versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- documentation, mobile-dev
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100