I have a pseudo-legacy Android app with hundreds of layouts that work nice up to 7-inch screens. However, I would like to run it on really large screens too (10 inches and up), but the system expands all the layouts to fill up the remaining space. I would really like to be able to define a maximum area for these large screens and simply have a black border that fills the remaining area.
What I want is apparently exactly as the behaviour on the screen compatibility mode that existed in really old Android devices:
On Android versions 1.6 to 3.1 the system runs your application in a "postage stamp" window. It emulates a 320dp x 480dp screen with a black border that fills the remaining area of the screen.
However, what the system does nowadays is:
On Android 3.2 and up the system draws the layout as it would on a 320dp x 480dp screen then scales it up to fill the screen.
I just don't want that scale up. Any ideas without having to edit every single layout for this? (and without having to provide a res/layout-large/ version for every single layout, evindently).
from Force all layouts to have a maximum area on very large screens
No comments:
Post a Comment