Interpreting Hierarchy View Results

A few days ago, I installed updates for the ADT plugin in Eclipse, and I just tried the new View Hierarchy tool. In addition, it took me a while to determine that measurements are only calculated in the first (parent) view. I noticed that the values ​​shown are not the same every time, even if there are no changes in my application.

For example, I launched one of my applications into the emulator, uploaded it to the hierarchy viewer and got the following results: (I wanted to include screenshots, but my reputation does not allow me more photos, so I just write the values)

Measurement: 175.340 ms
Layout: 5.179 ms
Drawing: 47.115 ms

Then, without any changes, I started the application again and got the following results:

Measurement: 98.696 ms
Layout: 4.819 ms
Draw: 50.923 ms

Can someone tell me why there is such a big difference between Measure values, for example?

In addition, did someone know the meaning / difference between the three values ​​represented: Measure , Layout, and Draw ? Are they associated with some specific attributes of beliefs?

The Android developer page does not contain too many explanations, and all I know is those values ​​that should be as small as possible.

+2
source share
1 answer

See "How Android draws views . "
It has all the information that the values ​​of Measure, Layout and Draw of View are.

+3
source

All Articles