@@ -10,10 +10,14 @@ Add the following dependency to your `build.gradle` file:
```
dependencies {
implementation 'com.google.android:flexbox:1.1.1'
implementation 'com.google.android:flexbox:2.0.0'
}
```
**Note that the default values for `alignItems` and `alignContent` for `FlexboxLayout` have been changed from `stretch` to `flex_start` starting from 2.0.0, it may break the existing apps.
Please make sure to set `stretch` explicitly if you want to apply the behavior of `stretch`.**
**Note that starting from 1.1.0, the library is expected to use with AndroidX. Please migrate to [AndroidX](https://developer.android.com/jetpack/androidx/migrate) if you use 1.1.0 or above.**
**Please use 1.0.0 if you haven't migrated to AndroidX.**
...
...
@@ -162,23 +166,23 @@ Here is a quick overview of the attributes/features comparison between the two i
* __alignItems__
* This attribute controls the alignment along the cross axis. Possible values are:
but as explained above, Android developers will benefit by having this attribute for having
more control over when a wrapping happens.
(5) Default values for `alignItems` and `alignContent` are set to `flex_start` instead of `stretch`.
* Setting `stretch` for the `alignItems` is expensive because the children of `FlexboxLayout` are calculated more than twice. The difference is more obvious when the layout hierarchy is deeply nested.
## Xamarin Binding
Xamarin binding is now available on [NuGet](https://www.nuget.org/packages/FlexboxLayoutXamarinBindingAndroid/) thanks to [@btripp](https://github.com/btripp)