ANDROID. ChipsLayoutManager (SpanLayoutManager, FlowLayoutManager). A custom layout manager for RecyclerView which mimicric TextView span behaviour, flow layouts behaviour with support of amazing recyclerView features
Added center dense strategy With it views are placed in center of canvas. There is no extra space distributed between views.
Logs in library disabled by default. Enabled only in development build type of library
This release adds a small feature of supporting scrollbars.
Also much more features have covered with functional tests.
A stability release over v0.3.4.
Several of already fixed issues covered with functional/unit tests. Since this release issues will be covered with tests to prevent regression.
Resolved issue : https://github.com/BelooS/ChipsLayoutManager/issues/12 Refactored main manager class code. It have been a bit bigger than 1k lines again. More docs & comments
A layout manager have become closer to the non-beta version
Stability release.
Provided bug fixes for some mentioned issues: https://github.com/BelooS/ChipsLayoutManager/issues/16 https://github.com/BelooS/ChipsLayoutManager/issues/8 https://github.com/BelooS/ChipsLayoutManager/issues/18 https://github.com/BelooS/ChipsLayoutManager/issues/17
Updated sample with bottom sheet fragment to show example with ChipsLayoutManager
inside scrollable container
and others like broken scrollToPosition
method in a previous release
Added fill strategies:
Any row has some space left, where is impossible to place the next view, because that space is too small. But we could distribute that space for available views in the row.
Row strategy is a mode of distribution left space.
STRATEGY_DEFAULT
- is used by default. Left space is placed at the end of the row.
STRATEGY_FILL_VIEW
- available space is distributed among views.
STRATEGY_FILL_SPACE
- available space is distributed among spaces between views, start & end views are docked to a nearest border.
STRATEGY_CENTER
- available space is distributed among spaces between views, start & end spaces included. Views are placed in center of canvas.
In such layouts by default last row isn't considered completed. So strategy isn't applied for last row. But you can also enable opposite behaviour.
Provided support for
int findFirstVisibleItemPosition();
int findFirstCompletelyVisibleItemPosition();
int findLastVisibleItemPosition();
int findLastCompletelyVisibleItemPosition();
Of course, any release notes have to contain such line:
Unfortunately 0.2.1 have contained several bugs, also i forgot to implement breaker feature for RTL
layout, so this release have created to fix that.