Is it important to design iPhone App layouts flexible?

后端 未结 6 1841
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 04:43

I am wondering if I would run into troubles when setting the heights of my views in the neb with fixed values.

Example: The height of the Status Bar is known. It\'s

6条回答
  •  孤街浪徒
    2021-01-06 04:58

    I always use a flexible layout that resizes automatically because that allows me to focus on the design and let the computer figure out the math.

    [EDIT] My reason is that something is going to change and I don't want to do the math again in this case. Things that can change:

    • Users might select bigger fonts
    • The next generation of the device gets a bigger screen
    • Translators hate it when they have to fit words into pixel-tight spaces
    • An add-on might take up a few pixels on the screen
    • A change in the OS might change the screen size by a few pixels
    • When I'm using predefined icons, their size might change
    • Ultimately, in a flexible application, the user can choose what she wants to see. I don't want her to have to layout the UI.

    So if you make your layout static, you'll eventually have to do it again. And again. Until you learn that the only constant in software development is change.

提交回复
热议问题