MDCFlexibleHeaderShiftBehavior

enum MDCFlexibleHeaderShiftBehavior {}

The possible translation (shift) behaviors of a flexible header view.

Enabling shifting allows the header to enter the @c MDCFlexibleHeaderScrollPhaseShifting scroll phase.

  • Header’s y position never changes in reaction to scroll events.

    Declaration

    Objective-C

    MDCFlexibleHeaderShiftBehaviorDisabled
  • When fully-collapsed, the header translates vertically in reaction to scroll events.

    Declaration

    Objective-C

    MDCFlexibleHeaderShiftBehaviorEnabled
  • When fully-collapsed, the header translates vertically in reaction to scroll events along with the status bar.

    If used with a vertically-paging scroll view, this behavior acts like MDCFlexibleHeaderShiftBehaviorEnabled.

    Declaration

    Objective-C

    MDCFlexibleHeaderShiftBehaviorEnabledWithStatusBar