0

I tried methods on https://stackoverflow.com/a/8996581/1389581 but none of them worked for me.

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>

gives null exception. When I use the matrix method, application gives fatal error and crashes.

I don't want to change bitmap.

Community
  • 1
  • 1
irukeru
  • 509
  • 1
  • 10
  • 26

1 Answers1

0

Take a look at this:How can i use RotateAnimation to rotate a circle?

No sure if it what are looking for, but it works.

Community
  • 1
  • 1
Guilherme Gregores
  • 1,050
  • 2
  • 10
  • 27