getFragmentManager().beginTransaction().setCustomAnimations(
R.animator.1, R.animator.2,R.animator.3, R.animator.4)
.replace(view1, view2)
.addToBackStack(null)
.commit();
This only performs animation on view2. I also want to do something with view1 at the same time. how can I do that? These views are FrameLayouts with dynamic generated id
Refering to android developers: FragmentTransaction setCustomAnimations(int enter, int exit, int popEnter, int popExit)
If I clearly understand what you need, for using animation for 1 view you must provide animator for exit parameter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With