1. 2015 is going to be a great year for Android! Why wait??
    Samsung Galaxy Note 5 | Samsung Galaxy S6 | HTC One M9
  2. New Forum Created: Samsung Gear VR!

Drawable folders..


  1. TheCompBoy

    TheCompBoy Well-Known Member

    Hello guys!

    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!

    Advertisement
    :
  2. qasimValent

    qasimValent Active Member

    You are correct but you can also just
    Create a folder called drawable, so res/drawable

    In this folder you can place images that can be used on big or small devices, just make the image png or 9patched so stretching and resizing doesnt cause uglyness.
    check out the links for more info:

    multiple screen size developing
    Supporting Multiple Screens | Android Developers

    Userinterface guide lines like icons and menues and buttons etc
    User Interface Guidelines | Android Developers


    So basically check out the stuff there, and you should find the answers you need
    alostpacket likes this.
  3. TheCompBoy

    TheCompBoy Well-Known Member

    Oh i solved it :)

    If anyone else need answear for same question here it is:
    for the scaling use this rule: mdpi = 100%, ldpi = 75% and hdpi = 125%
  4. TheCompBoy

    TheCompBoy Well-Known Member

    Oh i didn't see ur post am sorry :)
Loading...

Share This Page