Suppose if I don’t need to programmatically change the colors of my icons, can I add one large icon (256x256) for my project to the Drawable folder and not use others (of different resolutions), as the documentation recommends? On a test project, everything looks pretty good.

enter image description here

UPD: Thanks for the reply! Here's a google theme for the vector format for android on Habré:

Part 1 (habrahabr.ru/post/265601/)

Part 2 (habrahabr.ru/post/265603/)

    1 answer 1

    The documentation recommends sharing permissions not from a strange whim of platform developers to torture programmers with tediousness, but for quite prosaic reasons.

    The fact is that for devices with a small amount of memory, 256x256 icons will put this device by OME rather quickly.

    Devices with low performance will fall into friezes or even fall down on ANR when trying to process a large number of images in this resolution.

    To solve these problems, we use graphics separation according to the necessary minimum depending on the screen resolution.

    If you want to use one icon for all permissions - use the vector format, Google recently released the official library of support for this format.