标签:onwindowfocuschanged android 控件
重写onWindowFocusChanged方法
@Override
public void onWindowFocusChanged(boolean hasFocus) {
// TODO Auto-generated method stub
super.onWindowFocusChanged(hasFocus);
if (hasFocus) {
//避免重复调用
}
}
当Activity获取焦点和失去焦点时都会调用该方法,
标签:onwindowfocuschanged android 控件
原文地址:http://blog.csdn.net/u012252502/article/details/44083229