ViewLayoutMask

ceramic.ViewLayoutMask (Abstract)

Bit mask that defines layout constraints for views.

Controls how views can resize during layout computation:

  • Whether width/height can increase or decrease
  • Flexibility in one or both dimensions
  • Fixed size constraints

Layout masks are used by parent containers to communicate sizing constraints to their children during layout passes.

// Allow view to grow but not shrink
var mask = ViewLayoutMask.INCREASE;

// Allow flexible width only
var mask = ViewLayoutMask.FLEXIBLE_WIDTH;

// Check constraints
if (mask.canIncreaseWidth()) {
    // Width can grow
}

Type Conversions

From:

  • [Int](/api-docs/clay-native/Int/)

To:

  • [Int](/api-docs/clay-native/Int/)