public override void SetImageBitmap(Bitmap bm) { mResource = 0; mDrawable = RoundedCornerDrawable.FromBitmap(bm, Resources); base.SetImageBitmap(bm); UpdateDrawable(); }
public override void SetImageDrawable(Drawable drawable) { mResource = 0; mDrawable = RoundedCornerDrawable.FromDrawable(drawable, Resources); base.SetImageDrawable(drawable); UpdateDrawable(); }
private Drawable ResolveResource() { Drawable d = null; if (mResource != 0) { try { d = ContextCompat.GetDrawable(Context, mResource); } catch (Exception e) { mResource = 0; } } return(RoundedCornerDrawable.FromDrawable(d, Resources)); }