flexbox-layout v0.3.0 Release Notes

Release Date: 2017-06-28 // about 5 years ago
  • ๐Ÿš€ Stable release including RecyclerView integration!

    ๐Ÿ†• New features

    • FlexboxLayoutManager is now stable. #2
    • FlexboxLayoutManager can now scroll both directions #215


    ๐Ÿ› Bug fixes

    • no need to measure child when it is GONE #170
    • โœ‚ Removed the set of methods from FlexLine to retrieve the positions of it. #244
    • Layout becomes invisible if the first item is gone and the first line only contains the invisible view. #283
    • ๐Ÿ›  Fixes the issue that the index of the view becomes inconsistent #311
    • Horizontal scroll isn't handled correctly when layout direction is RTL and flex direction is row or row_reverse #318
    • Scroll direction is broken when flexDirection is column or column_reverse and layout direction is RTL #319

    Backward incompatible changes

    FlexboxLayout can be used in the same manner as the 0.2.x versions, but Flexbox specific constants are now defined in each individual class such as:
    ๐Ÿšš (including other values (such as FLEX_END, STRETCH) are now moved to each individual class.)

    • FlexboxLayout.FLEX_DIRECTION_ROW -> FlexDirection.ROW
    • FlexboxLayout.FLEX_WRAP_WRAP -> FlexWrap.WRAP
    • FlexboxLayout.JUSTIFY_CONTENT_FLEX_START -> JustifyContent.FLEX_START
    • FlexboxLayout.ALIGN_ITEMS_FLEX_START -> AlignItems.FLEX_START

    - FlexboxLayout.ALIGN_CONTENT_FLEX_START -> AlignContent.FLEX_START

    Attributes in FlexboxLayout.LayoutParams are now accessible through getter/setter methods instead of accessing to the instance fields directly. For example changing the wrapBefore attribute can be done in a following manner:

    FlexboxLayout.LayoutParams lp = (FlexboxLayout.LayoutParams) view.getLayoutParams(); lp.setWrapBefore(true);