You could not use a ProgressBar, but rather your own Drawable resource (e.g., a PNG file) and a RotateAnimation.
Or, you could use a pair of AnimationDrawables, each referring to the same set of underlying PNG files, just in the opposite sequence. On Sat, Apr 23, 2011 at 12:51 PM, B Lyon <[email protected]> wrote: > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- 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

