Status Update
Comments
m....@futuremind.com <m....@futuremind.com> #2
ma...@google.com <ma...@google.com>
ch...@google.com <ch...@google.com> #3
Thanks for filing this.
This is working as intended, since Card in your case have bigger elevation than a TopAppBar.
As you place it in a Column { TopAppBar; ListOfCards }, cards are drawn after the top app bar, and overlap its shadow.
You either need to switch to the Box and compose the TopAppBar after the list of cards Or use Scaffold that handles this order for you Or use Modifier.zIndex (not recommended) to have higher Z index in the top app bar than in the card.
ma...@google.com <ma...@google.com> #4
This behaviour is also happening when using views without elevation, like a Box.
m....@futuremind.com <m....@futuremind.com> #5
Is there any progress or roadmap for this issue?
I have another example of when that might happen. We have a LazyColumn which scrolls and then a Toolbar which animates background when a certain threshold of scroll is reached. On a weak device like P20 Lite, the jank caused by the animation running stops the fling.
ma...@google.com <ma...@google.com> #6
Alex, it seems to me that this is highly related to your recent work, let me know please if that's not the case.
Description
Jetpack Compose release version: beta08
Android Studio Build: Arctic Fox Beta / 4.2 Stable
This is a follow up forhttps://github.com/google/accompanist/issues/480 . Chris Banes suggested that it's a broader problem with Compose, not Pager itself, but the example I prepared is on pager.
The problem is that when we have some heavy layout and low end devices, sometimes frames are skipped ("Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread."). Whenever that happens, the flings are not calculated properly, they are probably finished at the point the frames are skipped.
This didn't happen with the old views, the fling was calculated properly even if there were skipped frames in the middle.
A quick example to reproduce the behavior (I also attached a video where you can see it).