Any idea on how I can stop the fade animation when invoking replace as below?
FragmentManager fm = activity.getFragmentManager();
FragmentTransaction transaction = fm.beginTransaction();
transaction.replace(Id,Fragment,Tag);
simple:
transaction.setCustomAnimations(0,0);
You can also use this method to set any custom animation you want, by passing a reference to R.anim.
resource.
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