I get a lint warning when I include an icon which doesn’t have versions for different densities. That is, if I add an icon, myIcon.png, to the drawable-mdpi directory, lint will complain that I don’t have versions of myIcon.png in the other drawable directories (drawable-hdpi, -xhdpi, -xxhdpi).
I would like to suppress this warning, either for all icons, or specifically for myIcon.png.
What is the syntax I would need to add to my lint-config.xml to achieve these suppressions?
example lint-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="MissingTranslation" severity="ignore" />
</lint>
usage of lint-config.xml in build.gradle (in my Android mobile):
android {
lintOptions {
lintConfig file("lint-config.xml")
}
}
see this link for graphical designers :
http://developer.android.com/design/style/devices-displays.html
in short , they suggest creating multiple images , one for each of the densities , so that it would look perfect (without pixelation or blurryness) on each of the possible densities.
the sizes should be as followed :