Zebra API Doc

layout Package

Layout package provides number of classes, interfaces, methods and variables that allows developer easily implement rules based layouting of hierarchy of rectangular elements. The package has no relation to any concrete UI, but it can be applied to a required UI framework

The package declares the following constraints constants:

  • NONE no constraints
  • LEFT left alignment constraint
  • TOP top alignment constraint
  • RIGHT right alignment constraint
  • BOTTOM bottom alignment constraint
  • CENTER center alignment constraint
  • HORIZONTAL horizontal elements alignment constraint
  • VERTICAL vertical elements alignment constraint
  • TLEFT top left alignment constraint
  • TRIGHT top right alignment constraint
  • BLEFT bottom left alignment constraint
  • BRIGHT bottom right alignment constraint
  • STRETCH stretch element
  • USE_PS_SIZE use preferred size for an element