开发者

What is invalid region in Android?

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 understan开发者_开发问答d 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜