Changelog History
Page 1
-
v2.0.1 Changes
January 17, 2020 -
v2.0.0 Changes
November 22, 2019๐ Performance improvements by avoiding child views are measured more than twice #46
๐ The version 2.0.0 improves the performance significantly especially
FlexboxLayout
is deeply nested.
As described in #514, there were unnecessary measure calls even if anyFlexitem
s in aFlexLine
didn't have anyflexGrow
orflexShrink
attributes set.
0๏ธโฃ Similarly, the default values foralignItems
andalignContent
forFlexboxLayout
has changed fromstretch
toflex_start
starting from 2.0.0 because settingstretch
foralignItems
turned out to be expensive. Setting the default value asstretch
might increase the unnecessary measure calls.๐ This is a major version release because the change may break the existing apps.
-
v1.1.1 Changes
September 20, 2019 -
v1.1.0 Changes
September 25, 2018๐ AndroidX support!
From 1.1.0 moving forward, the library is going to depend on the androidx artifacts.
No API changes from the flexbox library point of view. -
v1.1.0-beta1 Changes
July 19, 2018๐ Support AndroidX.
๐ AndroidX libraries are still in beta versions, so this release is not from the master branch.
๐ Once AndroidX becomes stable, we'll merge theandroidx
branch to master. -
v1.0.0 Changes
May 17, 2018Semantic versioning
๐ Start to follow the semantic versioning. flexbox-layout has been considered as stable for a while, but the version wasn't updated to 1.x. From this release on, the library starts to follow the semantic versioning.
๐ New features
- โ Added "space-evenly" support as one of the justifyContent values. #284
- โ Added maxLine attribute support, that specifies the maximum number of flex lines #156
๐ Bug fixes
-
v0.3.2 Changes
January 05, 2018- Raised the targetSdkVersion to 27
- ๐ Made the support library dependencies as
compileOnly
instead ofapi
not to force the dependent of the flexbox-layout projects to use the specific version of the support libraries (or explicitly exclude them). (#395)
-
v0.3.1 Changes
September 27, 2017Backward incompatible changes
- Raised minSdkVersion from 9 to 14.
๐ Bug fixes
- Dividers stop being displayed between all visible items once you set visibility as "gone" of one of those items (#357)
- Flexbox not respecting children margins added programmatically (#356)
- Horizontal margins are ignored on devices with API level < 17 for the calculation to judge is a wrapping is required (#353)
- ๐ Fix the baseline calculation above API Level 24+ (#341)
-
v0.3.0 Changes
June 28, 2017๐ 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
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 thewrapBefore
attribute can be done in a following manner:FlexboxLayout.LayoutParams lp = (FlexboxLayout.LayoutParams) view.getLayoutParams(); lp.setWrapBefore(true);
-
v0.3.0-alpha4 Changes
June 16, 2017๐ New features for FlexboxLayoutManager
- โ Add a set of find*Position (find(First|Last)(Completely)?VisibleItemPosition) methods to retrieve the positions of the visible view. #217
- โ Add support for scrollBars #249
- โ Add support for smoothScrollToPosition #264
๐ Bug fixes
- Child views are not measured properly when they are not visible #262
- ๐ Fixes the issue the FlexboxItemDecoration is misplaced upon scrolling #285
- Nested RecyclerView with FlexboxLayoutManager shows only one line #290
- ๐ฐ FlexboxLayoutManager doesn't work with payloads #297
- ๐ Fixes the issue that the items becoms invisible on the condition as follows #303
- the first item's visibility is gone
- the rest of the items (e.g. three in total) have layout_flexGrow attribute set.
- the second view has layout_wrapBefore attribute set (no items are
โ added to the flex line where the gone view is included)
API Changes
The constructor of FlexboxLayoutManager now requires a Context.
FlexboxLayoutManager layoutManager = new FlexboxLayoutManager(context);