1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

    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 Newbie

    Arthur Andy likes this.
  3. Arthur Andy

    Arthur Andy Newbie
    Thread Starter

    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

    Yes, they both would fall under then hdpi density setting.
     
    Arthur Andy likes this.
Loading...
Similar Threads - single application support
  1. Ok_a
    Replies:
    1
    Views:
    273
  2. Videogamer555
    Replies:
    1
    Views:
    397
  3. dannykewl
    Replies:
    1
    Views:
    217
  4. Dannydet
    Replies:
    4
    Views:
    324
  5. iSing
    Replies:
    0
    Views:
    2,423
  6. ldm1417
    Replies:
    5
    Views:
    562
  7. Rogerdodger90999999
    Replies:
    3
    Views:
    350
  8. Pulli Amarnath Reddy
    Replies:
    0
    Views:
    389
  9. Android News
    Replies:
    0
    Views:
    2,423
  10. tarunkshk
    Replies:
    0
    Views:
    310

Share This Page

Loading...