相关疑难解决方法(0)

如果我在onResume中为布局调用getMeasuredWidth()或getWidth(),则返回0

如果我在onResume中为布局调用getMeasuredWidth()或getWidth(),则返回0.我认为此时此视图尚未显示.

另外我认为我需要在绘制布局后调用的回调方法中放置getMeasuredWidth()或getWidth(),并且已知视图测量.我应该使用什么android回调方法?

layout android measurement

38
推荐指数
3
解决办法
3万
查看次数

标签 统计

android ×1

layout ×1

measurement ×1