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

Apps How to make single application to support multiple Resolution ?

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

  1. Arthur Andy

    Arthur Andy Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    27
    Joined:
    Jul 5, 2011

    Jul 5, 2011
    27
    2
    16
    Hi,
    I want to make universal build(application) that should support mentioned resolution devices :
    like

    320X480,
    480X800,
    480X854 and
    540 x 960.

    I want to use the same Image resources. According to the developer site, I tried both mentioned naming convension for res folder but unfortunately all devices are taking layout resources from res/layout (default) only. I dont know why it is taking from here while I made separate layout folder for each view.

    res/layout,
    res/layout-small
    res/layout-large

    OR,

    res/layout,
    res/layout-ldpi,
    res/layout-mdpi,
    res/layout-hdpi.


    I tried both way, still having the same problem.

    Please help to resolve it.


    Thanks in Advance,
    Andy
     

    Advertisement

  2. qasimValent

    qasimValent Member
    Rank:
    None
    Points:
    16
    Posts:
    39
    Joined:
    Jun 29, 2010

    Jun 29, 2010
    39
    6
    16
    RG
    Arthur Andy likes this.
  3. Arthur Andy

    Arthur Andy Newbie
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    27
    Joined:
    Jul 5, 2011

    Jul 5, 2011
    27
    2
    16
    Hi,
    Thanks for the fast response but problem is that, can 480X800 resolution application will work for both resolution(480X800 and 480X854), bez both are taking images resources from the same res folder like "res/drawable-hdpi" and for XML "res/layout-hdpi". When you're running 480x800 build on 480x854, there should be empty space of 54 pixels at the bottom. Can we make the build in such a way that the view will come proper without the 54 pixel gap?

    I have already checked that Android site for multiresolution but I found nothing regarding it.

    Please help me ???


    Thanks in Advance!!!
    Andy
     
  4. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    163
    Male
    Yes, they both would fall under then hdpi density setting.
     
    Arthur Andy likes this.

Share This Page

Loading...