当前位置:   article > 正文

android View onDraw被调用判断_android studio ondraw一直被调用

android studio ondraw一直被调用
  1. static final int PFLAG_DIRTY = 0x00200000;
  2. /**
  3. * View flag indicating whether this view was invalidated by an opaque
  4. * invalidate request.
  5. *
  6. * @hide
  7. */
  8. static final int PFLAG_DIRTY_OPAQUE = 0x00400000;
  9. /**
  10. * Mask for {@link #PFLAG_DIRTY} and {@link #PFLAG_DIRTY_OPAQUE}.
  11. *
  12. * @hide
  13. */
  14. static final int PFLAG_DIRTY_MASK = 0x00600000;

  1. public void draw(Canvas canvas) {
  2. ............................................................
  3. final boolean dirtyOpaque = (privateFlags & PFLAG_DIRTY_MASK) == PFLAG_DIRTY_OPAQUE &&
  4. (mAttachInfo == null || !mAttachInfo.mIgnoreDirtyState);
  5. mPrivateFlags = (privateFlags & ~PFLAG_DIRTY_MASK) | PFLAG_DRAWN;

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/673449
推荐阅读
相关标签
  

闽ICP备14008679号