本文整理了Java中android.app.Dialog.onWindowFocusChanged()
方法的一些代码示例,展示了Dialog.onWindowFocusChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialog.onWindowFocusChanged()
方法的具体详情如下:
包路径:android.app.Dialog
类名称:Dialog
方法名:onWindowFocusChanged
暂无
代码示例来源:origin: ukanth/afwall
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
/* Focus on current window is required and critical,
* if focus interrupted by "Home Button" or "SuperSU Dialog"
*/
if(hasFocus){
if(isNotFirstWindowFocus){
startReadFingerTip();
}
isNotFirstWindowFocus = true;
}else{
stopReadFingerTip();
}
}
代码示例来源:origin: zjutkz/AndroidArchitectureDemo
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate);
mLoadingImg.startAnimation(animation);
}
}
代码示例来源:origin: zjutkz/AndroidArchitectureDemo
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate);
mLoadingImg.startAnimation(animation);
}
}
代码示例来源:origin: zjutkz/AndroidArchitectureDemo
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate);
mLoadingImg.startAnimation(animation);
}
}
代码示例来源:origin: zjutkz/AndroidArchitectureDemo
@Override
public void onWindowFocusChanged(boolean hasFocus) {
super.onWindowFocusChanged(hasFocus);
Animation animation = AnimationUtils.loadAnimation(getContext(), R.anim.rotate);
mLoadingImg.startAnimation(animation);
}
}
内容来源于网络,如有侵权,请联系作者删除!