info.evelio.drawable.RoundedAvatarDrawable Java Examples

The following examples show how to use info.evelio.drawable.RoundedAvatarDrawable. 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: MainActivity.java    From cloud-cup-android with Apache License 2.0 5 votes vote down vote up
@Override
protected void onPostExecute(Bitmap result) {
    if (result != null) {
        BitmapDrawable bitmap = new BitmapDrawable(result);
        userImage.setImageDrawable(new RoundedAvatarDrawable(result));
    }
}
 
Example #2
Source File: EndOfGameActivity.java    From cloud-cup-android with Apache License 2.0 5 votes vote down vote up
@Override
protected void onPostExecute(Bitmap result) {
    if (result != null) {
        BitmapDrawable bitmap = new BitmapDrawable(result);
        winnerImage.setImageDrawable(new RoundedAvatarDrawable(result));
    }
}
 
Example #3
Source File: ProfileImageView.java    From Contacts with MIT License 5 votes vote down vote up
@Override
public void setImageBitmap(Bitmap bitmap)
{
	if (CorePrefs.isRoundedPictures())
		super.setImageDrawable(new RoundedAvatarDrawable(bitmap));
	else
		super.setImageBitmap(bitmap);
}
 
Example #4
Source File: ProfileImageView.java    From Contacts with MIT License 5 votes vote down vote up
@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 #5
Source File: ProfileImageView.java    From Klyph with MIT License 5 votes vote down vote up
@Override
public void setImageBitmap(Bitmap bitmap)
{
	if (KlyphPreferences.isRoundedPictureEnabled())
		super.setImageDrawable(new RoundedAvatarDrawable(bitmap));
	else
		super.setImageBitmap(bitmap);
}
 
Example #6
Source File: ProfileImageView.java    From Klyph with MIT License 5 votes vote down vote up
@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 #7
Source File: ProfileImageView.java    From KlyphMessenger with MIT License 5 votes vote down vote up
@Override
public void setImageBitmap(Bitmap bitmap)
{
	if (MessengerPreferences.isRoundedPictureEnabled())
		super.setImageDrawable(new RoundedAvatarDrawable(bitmap));
	else
		super.setImageBitmap(bitmap);
}
 
Example #8
Source File: ProfileImageView.java    From KlyphMessenger with MIT License 5 votes vote down vote up
@Override
public void setImageDrawable(Drawable drawable)
{
	if (MessengerPreferences.isRoundedPictureEnabled() && drawable instanceof PicassoDrawable)
	{
		super.setImageDrawable(new RoundedAvatarDrawable(((PicassoDrawable) drawable).getImage().getBitmap()));
	}
	else
	{
		super.setImageDrawable(drawable);
	}
}