0

我收到此错误:-

VFY: unable to resolve virtual method 4258: Landroid/view/View;.setAlpha (F)V, VFY: unable to resolve virtual method 4276: Landroid/view/View;.setTranslationX (F)V

我的 logcat 中的这条消息:-

Could not find method android.view.View.setTranslationX, referenced from method com.learning.animation.ZoomOutPageTransfer.transformPage.

我正在尝试使用添加ZoomOut页面传输动画viewpager,为此我按照链接进行缩小页面传输,我的应用程序正在运行,但它没有像上面提到的链接中所示那样缩小页面。请如果有人知道解决方案请告知。

先感谢您。

4

1 回答 1

0

setTranslationX method is available only on android 3.0 ( api level 11) and up. Are sure you're using device/emulator with proper android version?

于 2013-08-20T08:10:02.457 回答