Under "How Android Draws Views" topic, there is such a sentence :
Drawing begins with the root node of the layout. It is requested to measure and draw the layout tree. Drawing is handled by walking the tree and rendering each View that intersects the invalid region.
And I didn't quite understand the term "invalid region".
Here is the source article of the quotation.
Can someone elaborate it?
Thanks.
The "invalid region" is essentially the portion of the screen that requires repainting. It's used to make painting more efficient by only repainting the invalid region and leaving the rest alone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With