Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5020
Strategy for Layouts Across Devices
posted

If you have a full-screen flow layout of "widgets," and the widgets are resizable, what is the vision/strategy for making the layouts consistent across devices and orientations?  I've toyed around with a few ideas, but none have left me feeling that it was a great solution.

Here are some ideas that are unrelated.

a) Create a relationship between block size and screen real-estate so a block is a fixed physical size and that size is maintained between rotations and devices.

b) Invert the cell's width/height between orientations so a cell has the same ratio on rotation.

c) Invert the numberOfBlocksInViewport so the number of blocks is consistent on the device's physical axis.

d) Use the view's bound size for numberOfBlocksInViewport so each point (in terms of pixels) is a block so minimum sizing becomes easily achieved (Untested).