I want to set a buttons visibility after the animation is finished.
That\'s what calls the animation:
android.support.v4.app.FragmentTransaction fAni
Added in API 26 (and in Support Library) you can use
FragmentTransaction runOnCommit (Runnable runnable);
For example:
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
ft.setCustomAnimations(R.anim.enter_from_right, R.anim.exit_from_left);
ft.show(YourFragment);
ft.commit();
ft.runOnCommit(() -> Your_Action_Here);