Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TopAppBar] Fix top app bar snapping issue
Unlike other child views of AppBarLayout, CollapsingToolbarLayout will shift its top boundary to consume the window insets as well. Therefore we need to shift the top boundary back when calculating snapping positions to have a consistent logic with other views. This CL also simplifies the calculation so the origin of the y-coordinate used in the calculation will always be the top of the AppBarLayout. PiperOrigin-RevId: 413750156
- Loading branch information
1 parent
b8f2dd5
commit acb7958
Showing
1 changed file
with
24 additions
and
8 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