我一直在尝试使用 android 网站上显示的示例示例在多个共享元素上实现动画转换
ActivityOptions options = ActivityOptions.makeSceneTransitionAnimation(this,
Pair.create(view1, "agreedName1"),
Pair.create(view2, "agreedName2"));
但是当我尝试在 Eclipse IDE 中的示例应用程序上实现此代码时,它说
The method makeSceneTransitionAnimation(Activity, View, String) in the type ActivityOptions is not applicable for the arguments (MyActivity, Pair<View,String>, Pair<View,String>)
我可以在那里使用一些帮助。谢谢。