本文整理了Java中android.graphics.drawable.Drawable.setFilterBitmap()
方法的一些代码示例,展示了Drawable.setFilterBitmap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Drawable.setFilterBitmap()
方法的具体详情如下:
包路径:android.graphics.drawable.Drawable
类名称:Drawable
方法名:setFilterBitmap
暂无
代码示例来源:origin: bumptech/glide
@Override
public void setFilterBitmap(boolean filter) {
wrapped.setFilterBitmap(filter);
}
代码示例来源:origin: rey5137/material
@Override
public void setFilterBitmap(boolean filter) {
if(mDrawable != null)
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: facebook/litho
@Override
public void setFilterBitmap(boolean filter) {
if (mDrawable == null) {
return;
}
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: facebook/litho
@Override
public void setFilterBitmap(boolean filter) {
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: facebook/litho
@Override
public void setFilterBitmap(boolean filter) {
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: seven332/EhViewer
@Override
public void setFilterBitmap(boolean filter) {
super.setFilterBitmap(filter);
if (mDrawable != null) {
mDrawable.setFilterBitmap(filter);
}
}
代码示例来源:origin: seven332/EhViewer
public void setFilterBitmap(boolean filter) {
this.mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: AlexMofer/ProjectX
@Override
public void setFilterBitmap(boolean filter) {
if (mDrawable == null)
return;
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: 1993hzw/Androids
@Override
public void setFilterBitmap(boolean filter) {
if (baseDrawable != null) {
baseDrawable.setFilterBitmap(filter);
}
}
代码示例来源:origin: qiubiteme/android_api_demos
@Override
public void setFilterBitmap(boolean filter) {
if (mProxy != null) {
mProxy.setFilterBitmap(filter);
}
}
代码示例来源:origin: com.albedinsky.android/ui
/**
*/
@Override
public void setFilterBitmap(boolean filter) {
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: com.albedinsky.android/ui-graphics-base
/**
*/
@Override
public void setFilterBitmap(boolean filter) {
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: com.albedinsky.android/ui-graphics
/**
*/
@Override
public void setFilterBitmap(boolean filter) {
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: AlexMofer/ProjectX
@Override
public void setFilterBitmap(boolean filter) {
if (mDrawable == null)
return;
mDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: THEONE10211024/ApiDemos
@Override
public void setFilterBitmap(boolean filter) {
if (mProxy != null) {
mProxy.setFilterBitmap(filter);
}
}
代码示例来源:origin: AlexMofer/ProjectX
@Override
public void setFilterBitmap(boolean filter) {
super.setFilterBitmap(filter);
if (mProgressDrawable == null)
return;
mProgressDrawable.setFilterBitmap(filter);
}
代码示例来源:origin: rockon999/LeanbackLauncher
private Drawable getDeselectedBadgeIcon(Drawable image) {
int iconWidth = image.getIntrinsicWidth();
int iconHeight = image.getIntrinsicHeight();
image.setBounds(0, 0, iconWidth, iconHeight);
image.setFilterBitmap(true);
image.setAlpha((int) (255.0f * this.mBadgeImageAlpha));
Bitmap bitmap = Bitmap.createBitmap(iconWidth, iconHeight, Config.ARGB_8888);
image.draw(new Canvas(bitmap));
return new BitmapDrawable(getResources(), bitmap);
}
代码示例来源:origin: fookwood/Launcher3
public void applyPreloaderTheme(Theme t) {
TypedArray ta = t.obtainStyledAttributes(R.styleable.PreloadIconDrawable);
mBgDrawable = ta.getDrawable(R.styleable.PreloadIconDrawable_background);
mBgDrawable.setFilterBitmap(true);
mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0));
mRingOutset = ta.getDimensionPixelSize(R.styleable.PreloadIconDrawable_ringOutset, 0);
ta.recycle();
onBoundsChange(getBounds());
invalidateSelf();
}
代码示例来源:origin: WeAreFairphone/FP2-Launcher
@Override
public void applyTheme(Theme t) {
TypedArray ta = t.obtainStyledAttributes(R.styleable.PreloadIconDrawable);
mBgDrawable = ta.getDrawable(R.styleable.PreloadIconDrawable_background);
mBgDrawable.setFilterBitmap(true);
mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0));
mRingOutset = ta.getDimensionPixelSize(R.styleable.PreloadIconDrawable_ringOutset, 0);
ta.recycle();
onBoundsChange(getBounds());
invalidateSelf();
}
代码示例来源:origin: klinker24/Android-Blur-Launcher
public void applyPreloaderTheme(Theme t) {
TypedArray ta = t.obtainStyledAttributes(R.styleable.PreloadIconDrawable);
mBgDrawable = ta.getDrawable(R.styleable.PreloadIconDrawable_background);
mBgDrawable.setFilterBitmap(true);
mPaint.setStrokeWidth(ta.getDimension(R.styleable.PreloadIconDrawable_indicatorSize, 0));
mRingOutset = ta.getDimensionPixelSize(R.styleable.PreloadIconDrawable_ringOutset, 0);
ta.recycle();
onBoundsChange(getBounds());
invalidateSelf();
}
内容来源于网络,如有侵权,请联系作者删除!