I've been searching all around but I can't find an answer that helps solve this particular problem. My application has a custom slide-in, slide-out effect used like this:
Intent intent = new Intent(getApplicationContext(), MyActivity.class);
startActivity(intent);
overridePendingTransition(R.anim.slide_right_in, R.anim.slide_right_out);
The Problem
The problem is I have a BottomNavigation included in all activities, and I don't want it to get animated, I want to exclude it.
What I'm trying to achieve
I want to exclude the Bottom Navigation from the animation. Or, in other words, how can I only animate the content between transitions?
EDIT: I already tried doing with Shared Element, but I wanted it to work below API 21.
excludeTarget(findViewById(bottomNavId), true);
?