测量,布局,并在Hierarchyviewer绘制次 [英] Measure, Layout, and Draw times in Hierarchyviewer

查看:84
本文介绍了测量,布局,并在Hierarchyviewer绘制次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Android中Hierarchyviewer测量工具,布局和绘制时间之间的区别?目前在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.

推荐答案

有基本上在渲染过程中3个步骤。首先,你的观点得到测量,这是刚刚的宽度和高度。然后,控制是通过布局,这基本上只是告诉他们所在的测量里面的所有意见。最后,一​​切都绘制。这是其中的控制实际上是在画布上绘制。因此,这些可能是你在看什么

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.

这篇关于测量,布局,并在Hierarchyviewer绘制次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆