> That seems like it would work except I can't figure out how to create
> a RotateAnimation object.

new RotateAnimation(0, 360);

> There doesn't seem to be any method I can
> directly use to create and set the animation resource to.

?

> It gives
> constructors for creating from resources, using context and
> attributeset but I can't find any way to get the attributesets
> manually :s

???

ImageView iv=(ImageView)findViewById(R.id.thingtorotate);
Animation a=new RotateAnimation(0, 360);

a.setRepeatCount(Animation.INFINITE);
a.setDuration(SOME_VALUE_HERE);
// maybe other configuration as needed

iv.startAnimation(a);

Though if Romain Guy says go with a RotateDrawable, I'd follow his
recommendation if you can.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to