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

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

问题描述

我有点困惑 forceLayout的角色() requestLayout()无效()查看类的方法。

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

任何人都可以给我一些情况下,他们需要被调用在哪里?

Could anyone give me some scenarios where they need to be called ?

推荐答案

要更好地了解弗朗索瓦BOURLIEUX 和提供的答案的Dalvik 我建议你看一看通过的 Arpit马瑟的:

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(的使用)和无效()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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