WindowAnimation回调在结束时

时间:2019-02-21 18:10:53

标签: android dialog android-animation android-dialog

我正在使用windowanimations动画对话框。这是代码:

WelcomeToTeamDialog welcomeToTeamDialog = new WelcomeToTeamDialog((MainActivity) getActivity());
        welcomeToTeamDialog.getWindow().getAttributes().windowAnimations = R.style.SMC2DialogAnimation;
        welcomeToTeamDialog.show();

这是样式代码:

<style name="SMC2DialogAnimation">
    <item name="android:windowEnterAnimation">@anim/dialog_slide_up</item>
    <item name="android:windowExitAnimation">@anim/dialog_slide_down</item>
</style>

现在,我想回想动画何时结束。无法获得任何回调。我将在哪里获得动画结束的回调?

0 个答案:

没有答案