I was looking into a simple way to get the (small) ProgressBar to spin
counterclockwise, and it seems to come down to the class
AnimatedRotateDrawable, which looks to be hard-coded to spin clockwise
- it sets the angle increment to 360/framesCount, with no apparent
option to change the sign of the increment.  Most people probably have
come to expect that, I guess.

A lot about this (public) class AnimatedRotateDrawable seems to be
kind of hands-off - two of the attributes are private somehow
(framesCount and frameDuration), and I couldn't subclass it in a quick
attempt to see about trying to tweak this behavior (not that
subclassing would have worked).

In my case, if I am showing the spinning progress bar at all (which I
don't need to - I think that it's just a nice touch), then I need to
be able to flip the direction.  Before I get off of this little
distraction for the moment, I was wondering if any one else had played
with this before.  I guess I could just assimilate the class, add
assumed-to-be trivial changes for the flip option, and then change the
indeterminate drawable on the progressbar in the code, but I was
wondering if I'm missing some obviously simpler way.

thx

-- 
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