All surfaces are double buffered.  If there is flickering, it is because you
are not drawing everything you want to have shown in a particular frame
between lockCanvas() and unlockCanvasAndPost().

On Fri, Feb 18, 2011 at 12:12 AM, MobileVisuals <[email protected]>wrote:

> I am painting polygons with the Paint class in an animation. New
> polygon shapes are created for every new frame. These are painting
> over parts of the screen.
>
> The parts of the screen which are not painted in the new frame flicker
> in a disturbing way. I am using lockCanvas(null); and
> unlockCanvasAndPost(c). Shouldn't this fix the double buffering to
> avoid flickering?
>
> Does anyone know why the flickering occurs and how I can fix this? It
> seems like only the part of the screen that is painted for the new
> frame is double buffered. So I wonder if there is some better way than
> lockCanvas(null); and unlockCanvasAndPost(c) to implement double
> buffering?
>
>
> -----------------------------
>
> This is the third time that I try to post this message and it never
> gets posted. Why doesn't this message get posted?
>
> --
> 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
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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