アプリケーションに CustomAnimation 関数を使用してみました。しかし、Unknown Object Animator name エラーが発生します。私はいくつかの調査を行い、どうやら objectAnimator タイプのアニメーションが getSupportFragmentManager でサポートされていないことを発見しました (間違っている場合は修正してください)。
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();
言及された複数のスレッドがhttp://nineoldandroids.com/を ObjectAnimator に使用しているのを見ました。しかし、このライブラリを使用してアプリケーションに実装する方法がわかりません。
上記の関数で Object Animator タイプのアニメーションを使用できる回避策はありますか?