Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CollapsingToolbarLayout] Fixed scrolling sibling view bottom cut off…
… issue There was an issue when navigating back to a fragment with a CollapsingToolbarLayout, where the items at bottom of the CollapsingToolbarLayout's scrolling sibling view were cut off and couldn't be reached by scrolling. It had to do with the minimum height of the CollapsingToolbarLayout not being set at the point when HeaderScrollingViewBehavior calculates the height of the scrolling view in its onMeasureChild() method. The onMeasureChild() method factors in AppBarLayout#getTotalScrollRange which is dependent on the minimum height of the CollapsingToolbarLayout, so moving the CollapsingToolbarLayout's setMinimumHeight() from its onLayout() to its onMeasure() fixes the issue by making the minimum height available earlier. Resolves #1558 Resolves #846 Resolves #1070 Resolves #1198 PiperOrigin-RevId: 337309314
- Loading branch information