Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Measure, Layout, and Draw times in Hierarchyviewer

Tags:

android

What is the difference between Measure, Layout, and Draw time in Android Hierarchyviewer tool? There is a nice article on Android Developers, however I can't find any information related on actual meanings of these three different time values... Can somebody explain me the difference? Thanks.

like image 850
lomza Avatar asked Oct 20 '11 21:10

lomza


1 Answers

There are basically 3 steps during the render process. First, your view gets measured, this is the just the width and height. Then the controls are go through layout, this basically just tells all the views where they are located inside the measurements. And finally, everything is drawn. This is where the controls are actually drawn on the canvas. So those are probably the what you are looking at.

like image 125
Joe Avatar answered Nov 11 '22 02:11

Joe