android.app.Dialog.onWindowFocusChanged()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(279)

本文整理了Java中android.app.Dialog.onWindowFocusChanged()方法的一些代码示例,展示了Dialog.onWindowFocusChanged()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Dialog.onWindowFocusChanged()方法的具体详情如下:
包路径:android.app.Dialog
类名称:Dialog
方法名:onWindowFocusChanged

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);
  }
}

相关文章