Saturday, April 23, 2011

Re: [android-developers] progressbar spin counterclockwise?

no need for that . Use a simple Canvas scaling during dispatchdraw. That is supported all the way down to API3

@Override
    protected void dispatchDraw(Canvas canvas) {
    canvas.save(Canvas.MATRIX_SAVE_FLAG);
        canvas.scale(-1f,1f, getWidth() * 0.5f, getHeight() * 0.5f);
     super.dispatchDraw(canvas);
      canvas.restore();
    }
 


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate