Firstly
I noticed when creating a new project in Android Studio it generates drawable-v24
folder with ic_launcher_foreground.xml
icon.
And my question is:
- If vector drawables were introduced before v24 then why does it put the vector asset in
drawable-v24
and not indrawable-v21
folder?
Secondly
Another generated asset is ic_launcher_background.xml
which is created in res/drawable
folder and was later referenced from mipmap-anydpi-v26/ic_launcher.xml
.
- If it is only used in API v26+ (adaptive icons) then why was it created in
res/drawable
folder and not inres/drawable-v24
or inres/drawable-v26
? Is it due to some nature of mipmap folders?