Search code examples
androidviewredraw

redrawing just a part in android view


I extended a View and call the invalidate() method to force redrawing. I only redraw a part off the View, but everything else is black.

How can I stop clearing the screen before onDraw() is called?


Solution

  • you can use invalidate(Rect) or invalidate(left, top, right, bottom)