android.widget.ImageView.invalidateDrawable()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(312)

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

ImageView.invalidateDrawable介绍

暂无

代码示例

代码示例来源:origin: scwang90/SmartRefreshLayout

public T setAccentColor(@ColorInt int accentColor) {
  mAccentColor = accentColor;
  mTitleText.setTextColor(accentColor);
  if (mArrowDrawable != null) {
    mArrowDrawable.setColor(accentColor);
    mArrowView.invalidateDrawable(mArrowDrawable);
  }
  if (mProgressDrawable != null) {
    mProgressDrawable.setColor(accentColor);
    mProgressView.invalidateDrawable(mProgressDrawable);
  }
  return self();
}

代码示例来源:origin: ZieIony/Carbon

@Override
public void invalidateDrawable(@NonNull Drawable drawable) {
  super.invalidateDrawable(drawable);
  invalidateParentIfNeeded();
}

代码示例来源:origin: stackoverflow.com

resolver.delete(DB_RDVUtils.CONTENT_URI, ligne,null);
ImageView icon = (ImageView) item.findViewById(R.id.icon);
icon. invalidateDrawable(icon.getDrawable());

代码示例来源:origin: FreedomZZQ/YouJoin-Android

@Override
public void invalidateDrawable(Drawable who) {
  if (who == mMaskDrawable) {
    invalidate();
  } else {
    super.invalidateDrawable(who);
  }
}

代码示例来源:origin: Odoo-mobile/framework

@Override
public void invalidateDrawable(Drawable who) {
  if (who == mBorderDrawable || who == mMaskDrawable) {
    invalidate();
  } else {
    super.invalidateDrawable(who);
  }
}

代码示例来源:origin: box/box-android-sdk

@Override
public void invalidateDrawable(Drawable who) {
  if (who == mBorderDrawable || who == mMaskDrawable) {
    invalidate();
  } else {
    super.invalidateDrawable(who);
  }
}

相关文章

ImageView类方法