Search code examples
androidandroid-drawableandroid-mipmap

mipmap and drawable folders


I am new. I have two questions:

  1. If I put an image in drawable it is assumed to be in mdpi but if my app runs in a xxhdpi device the app stop What happend?

  2. To solve 1. I put the image in mipmap/xxhdpi (only in xxhdpi folder) and now not problem with xxhdpi device but in a hdpi tablet (too big) the image looks wrong (ugly) What can I do to solve that problem?

this is how it looks in tablet enter image description here


Solution

  • add all .png images to

    1. drawable-hdpi
    2. drawable-mdpi
    3. drawable-xhdpi
    4. drawable-xxhdpi
    

    it automatically suits too all devices where it is run!