Friday, June 24, 2011

Re: [android-developers] Can you avoid redrawing a view that is partially obscured by another view?

Unfortunately we have to redraw what's behind translucent/transparent
views. You should try to optimize the background view (by enabling its
drawing cache with View.setDrawingCacheEnabled() for instance.)

On Fri, Jun 24, 2011 at 9:55 PM, Justin <justin.holmgren@gmail.com> wrote:
> Here is my situation: I have two views, a front view and a back view.
> The back view is slow to redraw, and updates only occasionally (once a
> second or so).  The front view is transparent in most parts, fast to draw,
> and updates at around 60 fps.  Is there any way I can make this work?  It
> seems like if I invalidate the front view, it will also cause the back view
> to be invalidated, which means a bunch of expensive redrawing.
> Thanks so much,
> Justin
>
> --
> 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

--
Romain Guy
Android framework engineer
romainguy@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  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 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

No comments:

Post a Comment