So I made an app using in Eclipse using the Graphical Editor, AbsoluteLayout, fixed pixel values, etc… just bad practice in general. It defaulted to a 3.7in screen. Is there any way to design a separate layout for each screen size and have the program choose which to load based on said screen size?
So I made an app using in Eclipse using the Graphical Editor, AbsoluteLayout ,
Share
I fixed this by running this code at startup
From there I do an if statement to check for resolution and load a specific layout made for that resolution. EX. WVGA screen is 800×480 so I check for that and load the layout.
This was for API < 13, now those functions are deprecated, see this Get screen dimensions in pixels