Description: Issue can be seen on the official Catalog app. This video will show the issue : https://streamable.com/y2r6l
To resume, you go to the bottom of a list - on a screen which contains a CollapsingToolbar.
Going to another fragment (by clicking on an item) and then coming back will make the list be "cut" on the bottom of the size of the collapsingtoolbar (minus the standard size of the toolbar it seems).
The only way to make the cut disappears is expanding the collapsingtoolbar (by going on top of the screen), then scroll back.
Again see the streamable link to see exactly the steps and the problem.
It is also reproducible on apps I worked on with a similar setup and behavior.
Expected behavior: Screenshots and/or description of expected behavior
No cut !
Source code: Official Material Catalog app
Android API version: Tested on API 28
Material Library version: Last commit a36826b01852d8a65aabd2bc81604ed0e72422ed
Also happens on every others versions.
Device: Device on which the bug was encountered here
Pixel XL, Pixel 4, many more
Did you found a workaround for this problem?
Oh Google, this bug has been around for many years, and even in your project it is reproduced each time, is it really impossible to fix it?
Workaround is to add android:layout_marginBottom="?attr/actionBarSize" to your RecyclerView
Closing as duplicate of https://github.com/material-components/material-components-android/issues/1558 which provides a little more information. Hoping to take a look at this soon, but if anyone has any ideas on what may be happening or when this started happening, feel free to comment there.