Wednesday, 15 May 2019

Mimic Snackbar + CoordinatorLayout + FAB with new MotionLayout

Let's say we have a BottomNavigationBar with a FAB on top. When using this setup and showing a Snackbar, the Snackbar should appear above the BottomNavigationBar and push up/down the FAB while appearing/dismissing.

This is a common scenario for the use of CoordinatorLayout. Is it also possible to create this animation using the new MotionLayout?

There is an issue in the bug tracker, but it's already closed, because OP didn't clearly formulate the question (https://issuetracker.google.com/issues/112665540)

Problems I ran into while trying: We don't have access to the layout-id of the Snackbar. We also don't have access to the general xml of the Snackbar, so we cannot set its Constraints.



from Mimic Snackbar + CoordinatorLayout + FAB with new MotionLayout

No comments:

Post a Comment