Fix issues for fix-layout, sticky-layout, floating-layout and width calculation #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix issues:
Before Fixing:
Fix Layout
When scrolling, the view in red keep shaking and won't be sticky on the screen.
![ezgif com-gif-maker](https://user-images.githubusercontent.com/7471672/119767550-9c11c600-bee9-11eb-86b4-8fa65ae3ef40.gif)
Sticky layout
The view with sticky layout keeps jumping
Floating layout
Floating view can stay where it should be steadily
After fixing:
Views with these 3 layouts stay stickily on the screen when scrolling