Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 3 of 3
  1. Thread Author  Thread Author    #1  
    Monica28's Avatar

    Posts
    6 Posts
    Global Posts
    7 Global Posts

    Default Multiple Screen Size support in android

    Hello All,
    I m facing problem in Android since many days but didnt get solved
    1. I have 3 folders for images thats is mdpi,ldpi,hdpi
    2. I have 3 layout folders for small screen,medium and high screen

    but still in normal screen layout many device comes in this range but stilll in many case it is working properly
    Plz kindly help if any solution .Kindly post any example layout if possisle that works on allmost all device
    Thanks if any help
  2. #2  
    piizzadude's Avatar
    Banned

    Posts
    5,767 Posts
    Global Posts
    5,774 Global Posts
    ROM
    Something JB

    Default Re: Multiple Screen Size support in android

    what is the end game here? What are you trying to accomplish?
  3. #3  

    Default Re: Multiple Screen Size support in android

    I'm assuing you devlopering an app There 2 solution for that (i case of layout):

    1. If you plan to make app have same style on any screen, you can create one layout file with all elements possible and by detecting screen size and other parameters make especific elements visible. Remeber to use dip or dp units not px which ignores pixel dencity. It's inconvetional way to do it but it might work, it gives more freestyle but requires more maintaining and testing on other devices. Thats how websites deal with it (if they deal with it)

    2.Use what you already using (i assume you use categorization by surfixes), check what that device that you think picks wrong layout, check what parameters it picks and try to fix it. You might try to force layout by code... but im not sure if thats possible, my Android developer advantures did come to deplyment level to care about htis stuff.

    But in general is best to make strachy layout as default layout that will strach by it self and it will work on any screen. Remember you are director of the show, you are magician, no body look on your code (or else what you doing is your official job), so you can always do some hacks to achieve something, think out of the box if somebody one day gonna point you better practice then you can always correct it... but if it works it really does not matter as long it does not look ugly to user.

    In case of graphics, you need to trust a phone, if it picks wrong density for your graphics it's phone fault not yours... or else it use some untypical density you might try to add it

    Also read this:

    Supporting Multiple Screens | Android Developers

Similar Threads

  1. What screen size is best in a high end device?
    By badbrad17 in forum General News & Discussion
    Replies: 100
    Last Post: 11-11-2012, 02:11 AM
  2. Manage Different Screen Resolution and Density in Android
    By Jalpa Bhaliya in forum Android Apps
    Replies: 0
    Last Post: 10-31-2012, 05:53 AM
  3. Are there still no screen adjustment settings in Android?
    By TerryMasters in forum Google / Samsung Galaxy Nexus
    Replies: 1
    Last Post: 12-03-2011, 01:30 PM
  4. EVO screen size? Fit in pocket?
    By klebron23 in forum HTC EVO 4G
    Replies: 17
    Last Post: 06-24-2010, 12:40 PM
  5. Any way to Update ALL Apps in Android Market?
    By Casey Chan in forum General Help and How To
    Replies: 5
    Last Post: 09-01-2009, 03:56 PM

Posting Permissions