mipmap and drawable - in which cases to use
Hello!
In the project I'm currently working on, ALL the images were placed by the previous developer in mipmap-xxxx. In drawable, only .xml files.
It seemed to me that mipmap should only be used for app icons.
Actually, the question is - how long is it correct to store ALL the images in mipmap, or is it a mistake? It would be good, if possible, to use references to the documentation in the responses
3
Author: ViT-Vetal-, 2016-11-27
1 answers
You correctly wrote that mipmap is usually used for application icons. mipmap
appeared in android 4.3 Mipmapping for drawables.
This article describes why it is better to use mipmap
for icons.
In short, when your icons are located in drawable - [разрешение]
, you may have problems displaying icons of the wrong size.
3
Author: pavel163, 2016-11-27 11:12:07