• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to make single application to support multiple Resolution ?

Arthur Andy

Newbie
Jul 5, 2011
27
2
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
 
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
 
Upvote 0
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

Yes, they both would fall under then hdpi density setting.
 
  • Like
Reactions: Arthur Andy
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones