onWindowFocusChanged Activity加载完成时调用

API 1

[java]  view plain copy
  1. @Override  
  2.  public void onWindowFocusChanged(boolean hasFocus) {  
  3.   // TODO Auto-generated method stub  
  4.   super.onWindowFocusChanged(hasFocus);  
  5.  }  


Called when the current Window of the activity gains or loses focus. This is the best indicator of whether this activity is visible to the user

当hasFocus == true,表示加载完成

本函数调用点在Actvity整个页面加载完成时被调用。

如果想要获取某个View的高度,可以在这里获得,别的地方有可能会调用过早导致获取不到实际的大小

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值