com.nostra13.universalimageloader.core.display.CircleBitmapDisplayer Java Examples
The following examples show how to use
com.nostra13.universalimageloader.core.display.CircleBitmapDisplayer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CreditsAdapter.java From candybar with Apache License 2.0 | 6 votes |
public CreditsAdapter(@NonNull Context context, @NonNull List<Credit> credits) { mContext = context; mCredits = credits; int color = ColorHelper.getAttributeColor(mContext, android.R.attr.textColorSecondary); Drawable drawable = DrawableHelper.getTintedDrawable( mContext, R.drawable.ic_toolbar_default_profile, color); mOptions = ImageConfig.getRawDefaultImageOptions(); mOptions.resetViewBeforeLoading(true); mOptions.cacheInMemory(true); mOptions.cacheOnDisk(true); mOptions.showImageForEmptyUri(drawable); mOptions.showImageOnFail(drawable); mOptions.showImageOnLoading(drawable); mOptions.displayer(new CircleBitmapDisplayer()); }
Example #2
Source File: CreditsAdapter.java From wallpaperboard with Apache License 2.0 | 6 votes |
public CreditsAdapter(@NonNull Context context, @NonNull List<Credit> credits) { mContext = context; mCredits = credits; int color = ColorHelper.getAttributeColor(mContext, android.R.attr.textColorSecondary); Drawable drawable = DrawableHelper.getTintedDrawable( mContext, R.drawable.ic_toolbar_default_profile, color); mOptions = ImageConfig.getRawDefaultImageOptions(); mOptions.resetViewBeforeLoading(true); mOptions.cacheInMemory(true); mOptions.cacheOnDisk(true); mOptions.showImageForEmptyUri(drawable); mOptions.showImageOnFail(drawable); mOptions.showImageOnLoading(drawable); mOptions.displayer(new CircleBitmapDisplayer()); }
Example #3
Source File: CreditsAdapter.java From candybar-library with Apache License 2.0 | 6 votes |
public CreditsAdapter(@NonNull Context context, @NonNull List<Credit> credits) { mContext = context; mCredits = credits; int color = ColorHelper.getAttributeColor(mContext, android.R.attr.textColorSecondary); Drawable drawable = DrawableHelper.getTintedDrawable( mContext, R.drawable.ic_toolbar_default_profile, color); mOptions = ImageConfig.getRawDefaultImageOptions(); mOptions.resetViewBeforeLoading(true); mOptions.cacheInMemory(true); mOptions.cacheOnDisk(true); mOptions.showImageForEmptyUri(drawable); mOptions.showImageOnFail(drawable); mOptions.showImageOnLoading(drawable); mOptions.displayer(new CircleBitmapDisplayer()); }