Author Topic: Layout advice needed  (Read 1389 times)

ImNotLost

  • Guest
Layout advice needed
« on: October 17, 2012, 05:43:31 PM »
I have a screen with a header, a scrollable list and a navigation-bar at the bottom and I want the following features:

https://dl.dropbox.com/u/14944651/Scribbles%20%28page%2010%29.png

  • Header and Navbar to fill screen width (not scale) - height should remain constant in pixels
  • List anchored to the header with a 20 pixel padding
  • List anchored to the navbar with a 20 pixel padding
  • List panel clip region to fill list area with 20 pixel padding all around
  • List items with 20 pixel padding off off list panel clip region
  • The entire setup should adjust automatically when switching between portrait and landscape
  • The entire setup should work well with different screen sizes

How do I go about making this? I don't mind writing scripts.

For instance if I were to create my own UIAnchor / UIStretch replacement, where in the documentation would I find info on which properties to keep up-to-date, etc.?



ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Layout advice needed
« Reply #1 on: October 18, 2012, 03:11:08 PM »
UIAnchor will let you position things relative to edges of the screen, sure -- but for clipping you will need to write your own logic. For the panel you will want to adjust its clipping, UIAnchor won't do it for you. For an example of how UIAnchor can be used, look at the first example.