forceLayout()、requestLayout() 和 invalidate() 的使用 [英] Usage of forceLayout(), requestLayout() and invalidate()

查看:29
本文介绍了forceLayout()、requestLayout() 和 invalidate() 的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 forceLayout()requestLayout()invalidate() 方法的作用有点困惑>查看类.

I'm a bit confused about the roles of forceLayout(), requestLayout() and invalidate() methods of the View class.

他们什么时候被叫?

推荐答案

为了更好地理解 François BOURLIEUXDalvik 我建议你看一下 Arpit Mathur:

To better understand answers provided by François BOURLIEUX and Dalvik I suggest you take a look at this awesome view lifecycle diagram by Arpit Mathur:

这篇关于forceLayout()、requestLayout() 和 invalidate() 的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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