Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Android Draws Views

In How Android Draws Views:

"Because the tree is traversed in-order, this means that parents will be drawn before (i.e., behind) their children, with siblings drawn in the order they appear in the tree."

Does the author actually mean "pre-order", instead of "in-order"?

Thank you for your help.

like image 902
galath Avatar asked Dec 21 '22 10:12

galath


1 Answers

It's more like "depth-first order" for measuring the children and "pre-order" for the actual drawing. The parent will be drawn first and the children stacked on top of the parent.

like image 184
Mircea Nistor Avatar answered Dec 27 '22 03:12

Mircea Nistor