Has looked through your code and saw one big perfomance issue: protected void onDraw(Canvas canvas) { Paint foreground = new Paint(Paint.ANTI_ALIAS_FLAG); ... }
It takes too much time when your try to allocate memory for Paint object. If you work with animation it always calls invalidate() method which redraws your View. Memory allocation for Paint should be outside of onDraw() method (e.g. when you create your view, in it's constructor) it will give you much better perfomance that you have now. Try to do so and you'll see. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en