我想在动画结束后设置按钮可见性.
这就是调用动画的原因:
android.support.v4.app.FragmentTransaction fAnimation = this.getActivity().getSupportFragmentManager().beginTransaction();
fAnimation.setCustomAnimations(android.R.anim.slide_in_left, R.anim.pull_out_to_left);
if (this.isVisible()) {
fAnimation.hide(this);
fAnimation.commit();
}
// code that will be executed when the fragment is gone (after the animation is over)
Run Code Online (Sandbox Code Playgroud)
有没有办法让听众知道我的片段何时消失?