0

How I can determine if a view was invalidated? I see that the View class has isDirty() method but it doesn't seem to work in my case.

I'm making a custom layout that can animate blurring of it's content. It extends FrameLayout. So at first the layout draws it's first child to a bitmap, and than displays the bitmap instead of actual view. Also it starts AsyncTask that creates blur animation steps.

So I need to know when the child view was changed so I can redraw the bitmap and restart AsyncTask.

0neel
  • 383
  • 5
  • 11

1 Answers1

1

I've found that this can be implemented using ViewTreeObserver.OnPreDrawListener

0neel
  • 383
  • 5
  • 11