I just have this question cus i have 3 folders and everyone else should also have when they create apps and i am now trying to update my app with some nice graphics for some buttons and such.. And now i wonder the following.
I have some button i want to add a picture to.. But there is three folders Drawable-hdpi, mdpi and ldpi, The buttons im creating need different sizes for each folder correct so when u use for example small screen phone the buttons wont be too big.. And the screen is big phone the buttons wont be too small.. Correct?
And now i wonder what kind of width and height should i have on theese pictures for each folder here?
Please help me. Thanks!
You can find a very detailled explanation in the Android Development Guide: http://developer.android.com/guide/practices/screens_support.html
Your “normal” sized image should be optimized for mdpi (160dpi), while the ldpi image is 25% smaller (120dpi) and the hdpi image is 50% larger (240dpi).
Android will then select the best-matching ressource and scale it up/down if necessary.
So even if you only have a hdpi image (and no ldpi/mdpi), Android will scale it down on devices with low ressolution displays and it should look passable.