开发者

NoSuchMethodError: android.widget.ImageView.setPivotX

开发者 https://www.devze.com 2023-04-11 06:20 出处:网络
While setting the pivotx for my开发者_如何学编程 imageview I am getting the following error during run time:

While setting the pivotx for my开发者_如何学编程 imageview I am getting the following error during run time:

10-06 03:27:28.190: ERROR/AndroidRuntime(327): java.lang.NoSuchMethodError: android.widget.ImageView.setPivotX

What does this mean?As far as I know setPivotX is a valid method for an imageview..

Here is the code:

private void updateRotation(double angle)
{

   mTop.setPivotX(mTop.getWidth()/2);
   mTop.setPivotY(mTop.getHeight()/2);
   mTop.setRotation(180);

}


As stated in in the docs setPivotX is only available on API Level 11 (Android 3.0). You must be running on a device/emulator with an earlier version.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号