-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the issue that values of the item decoration is misplaced (#294)
when the user scrolls the RecyclerView. This was because of the reasons that: - FlexboxItemDecoration#isFirstItemInLine wasn't working correctly (it expected the flex lines only being calculated in the FlexboxHelper#calculateFlexLines, not expecting the already calculated flex lines). - In the layoutFlexLine method in FlexboxLayoutManager, calculateItemDecorationsForChild needed to be called before added to the RecyclerView because the view man be created in that method, in that case calcurated decoration's inset values are not set at the time of creation.
- Loading branch information
Showing
4 changed files
with
195 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters