1. Download our Official Android App: Forums for Android!

Apps Drawable folders..

Discussion in 'Android Development' started by TheCompBoy, Sep 14, 2011.

  1. TheCompBoy

    TheCompBoy Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    98
    Posts:
    589
    Joined:
    Oct 18, 2010

    Oct 18, 2010
    589
    53
    98
    Programmer
    Sweden
    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 Member
    Rank:
    None
    Points:
    16
    Posts:
    39
    Joined:
    Jun 29, 2010

    Jun 29, 2010
    39
    6
    16
    RG
    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 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    98
    Posts:
    589
    Joined:
    Oct 18, 2010

    Oct 18, 2010
    589
    53
    98
    Programmer
    Sweden
    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 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    98
    Posts:
    589
    Joined:
    Oct 18, 2010

    Oct 18, 2010
    589
    53
    98
    Programmer
    Sweden
    Oh i didn't see ur post am sorry :)
     

Share This Page

Loading...