0.3.0
Stable release including RecyclerView integration!
New features
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
-
FlexboxLayoutcan 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.ROWFlexboxLayout.FLEX_WRAP_WRAP->FlexWrap.WRAPFlexboxLayout.JUSTIFY_CONTENT_FLEX_START->JustifyContent.FLEX_STARTFlexboxLayout.ALIGN_ITEMS_FLEX_START->AlignItems.FLEX_STARTFlexboxLayout.ALIGN_CONTENT_FLEX_START->AlignContent.FLEX_START
-
Attributes in
FlexboxLayout.LayoutParamsare now accessible through getter/setter methods instead of accessing to the instance fields directly. For example changing thewrapBeforeattribute can be done in a following manner:FlexboxLayout.LayoutParams lp = (FlexboxLayout.LayoutParams) view.getLayoutParams(); lp.setWrapBefore(true);
