Thursday, 9 May 2019

Shared Content overlapping Bottom Navigation

My MainActivity's got a recyclerview and a bottomnavigationview. Items in the recyclerview are CardViews. When I click an item that's halfway obscured by the bottomnavigationview, it "pops" over the BNV, then slides up to become the header in LaunchedActivity.

When backing out of LaunchedActivity, it slides down, over the BNV, then "snaps" back into place:

enter image description here

How can I either:

  1. Have the shared content appear to slide from underneath the BNV, or failing that,
  2. Have the shared content start off invisible, and fade as it slides to the header

I've tried playing with elevation of the BNV, I've tried setting sharedElementEnterTransition to Fade(), I've tried specifying excludeTarget with BottomNavigation; I can't seem to make things work how I'd like



from Shared Content overlapping Bottom Navigation

No comments:

Post a Comment