0
我尝试了https://stackoverflow.com/a/8996581/1389581上的方法,但没有人为我工作。在其中心旋转图像
Animation animation = AnimationUtils.loadAnimation(this, R.anim.rotate_arround_center);
try {
radarView.startAnimation(animation);
}
catch(Exception ex) {
Log.i(ProcessActivity.str_logCaptionName_ProcessActivity, "radar animation ex : " + ex.getMessage());
}
-
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="45"
android:toDegrees="45"
android:pivotX="50%"
android:pivotY="50%"
android:duration="1000"
android:startOffset="0"/>
</set>
给空例外。当我使用矩阵方法时,应用程序给出致命错误和崩溃。
我不想更改位图。
它再次给出null异常:( – irukeru 2013-02-21 21:28:09