【发布时间】:2012-06-22 15:18:25
【问题描述】:
我想在动画完成后设置按钮可见性。
这就是所谓的动画:
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)
有什么方法可以附加一个监听器以知道我的片段何时消失?
【问题讨论】:
标签: android android-fragments android-animation