gpt4 book ai didi

android - forceLayout()、requestLayout() 和 invalidate() 的使用

转载 作者:IT老高 更新时间:2023-10-28 12:55:43 25 4
gpt4 key购买 nike

我对 forceLayout() 的角色有点困惑, requestLayout()invalidate() View 的方法类。

什么时候叫他们?

最佳答案

为了更好地理解 François BOURLIEUX 提供的答案和 Dalvik我建议你看看 Arpit Mathur 提供的这个很棒的 View 生命周期图。 : enter image description here

关于android - forceLayout()、requestLayout() 和 invalidate() 的使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13856180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com