本文整理了Java中android.widget.ImageView.invalidateDrawable()
方法的一些代码示例,展示了ImageView.invalidateDrawable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.invalidateDrawable()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称: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);
}
}
内容来源于网络,如有侵权,请联系作者删除!