Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old September 14th, 2011, 03:23 AM   #1 (permalink)
Junior Member
 
Join Date: Jul 2011
Posts: 27
 
Device(s):
Thanks: 9
Thanked 2 Times in 2 Posts
Unhappy How to make single application to support multiple Resolution ?

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

Arthur Andy is offline  
Reply With Quote
Sponsors
Old September 14th, 2011, 04:33 AM   #2 (permalink)
Junior Member
 
Join Date: Jun 2010
Location: RG
Posts: 39
 
Device(s): DELL STREAK
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to qasimValent
Default

Im guessing youve read this right?
Supporting Multiple Screens | Android Developers

What did you name the.xmls in those folders?
qasimValent is offline  
Last edited by qasimValent; September 14th, 2011 at 04:37 AM.
Reply With Quote
The Following User Says Thank You to qasimValent For This Useful Post:
Arthur Andy (September 16th, 2011)
Old September 15th, 2011, 08:41 PM   #3 (permalink)
Junior Member
 
Join Date: Jul 2011
Posts: 27
 
Device(s):
Thanks: 9
Thanked 2 Times in 2 Posts
Default

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
Arthur Andy is offline  
Reply With Quote
Old September 15th, 2011, 11:16 PM   #4 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 977
 
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
Default

Quote:
Originally Posted by Arthur Andy View Post
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.
jonbonazza is online now  
Reply With Quote
The Following User Says Thank You to jonbonazza For This Useful Post:
Arthur Andy (September 16th, 2011)
Reply

Bookmarks

Tags
android, java


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:47 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo