com.squareup.picasso.PicassoDrawable Java Examples
The following examples show how to use
com.squareup.picasso.PicassoDrawable.
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: BorderedProfileImageView.java From Klyph with MIT License | 6 votes |
@Override public void setImageDrawable(Drawable drawable) { if (drawable != null && KlyphPreferences.isRoundedPictureEnabled() == true) { PicassoDrawable pDrawable = (PicassoDrawable) drawable; super.setImageDrawable(new BitmapDrawable(getContext() .getResources(), BitmapUtil.getCirleBitmap( pDrawable.getImage().getBitmap(), AttrUtil.getColor( getContext(), R.attr.profileIconBackgroundColor)))); } else { super.setImageDrawable(drawable); } }
Example #2
Source File: ProfileImageView.java From Contacts with MIT License | 5 votes |
@Override public void setImageDrawable(Drawable drawable) { if (CorePrefs.isRoundedPictures() && drawable instanceof PicassoDrawable) { super.setImageDrawable(new RoundedAvatarDrawable(((PicassoDrawable) drawable).getImage().getBitmap())); } else { super.setImageDrawable(drawable); } }
Example #3
Source File: TouchImageView.java From Klyph with MIT License | 5 votes |
@Override public void setImageDrawable(Drawable drawable) { super.setImageDrawable(drawable); if (drawable instanceof PicassoDrawable) { PicassoDrawable pDrawable = (PicassoDrawable) drawable; BitmapDrawable bitmapDrawable = (BitmapDrawable) pDrawable.getImage(); if (bitmapDrawable.getBitmap() != null) { bmWidth = bitmapDrawable.getBitmap().getWidth(); bmHeight = bitmapDrawable.getBitmap().getHeight(); } } }
Example #4
Source File: ProfileImageView.java From Klyph with MIT License | 5 votes |
@Override public void setImageDrawable(Drawable drawable) { if (KlyphPreferences.isRoundedPictureEnabled() && drawable instanceof PicassoDrawable) { super.setImageDrawable(new RoundedAvatarDrawable(((PicassoDrawable) drawable).getImage().getBitmap())); } else { super.setImageDrawable(drawable); } }
Example #5
Source File: ProfileImageView.java From KlyphMessenger with MIT License | 5 votes |
@Override public void setImageDrawable(Drawable drawable) { if (MessengerPreferences.isRoundedPictureEnabled() && drawable instanceof PicassoDrawable) { super.setImageDrawable(new RoundedAvatarDrawable(((PicassoDrawable) drawable).getImage().getBitmap())); } else { super.setImageDrawable(drawable); } }