相关疑难解决方法(0)

片段事务动画完成后执行操作

我想在动画结束后设置按钮可见性.

这就是调用动画的原因:

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)

有没有办法让听众知道我的片段何时消失?

android android-animation android-fragments

53
推荐指数
3
解决办法
4万
查看次数