0

I tried use CustomAnimation function for my application. But I end up getting Unknown Object Animator name error. I did some research and found out apparently objectAnimator type of animation is not supported under getSupportFragmentManager (correct me if i'm wrong).

    getSupportFragmentManager()
        .beginTransaction()
        .setCustomAnimations(R.animator.card_flip_left_in, R.animator.card_flip_left_out,
                R.animator.card_flip_right_in, R.animator.card_flip_right_out)
                .add(R.id.content_frame, reportPage,reportPage.getClass().getSimpleName()).addToBackStack(reportPage.getClass().getSimpleName())
                .commit();

        getSupportFragmentManager().executePendingTransactions();

I saw multiple threads mentioned use http://nineoldandroids.com/ for ObjectAnimator. But I don't have an idea of how to use this library to implement it on my application.

Is there any workaround that I can use Object Animator type of animation in the above function?

4

0 回答 0