You could use SetLargeIcon()
to change the icon to your bitmap.
The SetLargeIcon()
requires a Bitmap instance.
For example:
builder.SetLargeIcon(bitmap);
The official document: notifications
The SetSmallIcon()
needs a A resource ID in the application's package of the drawable to use. You could just copy your icons and paste them into drawable
folder. And set the Build Action to AndroidResource in Properties
For example:
builder.SetSmallIcon(Resource.Drawable.YOUR_ICON);
If you want to set bitmap as ImageView background, please try SetImageBitmap()
:
imageview.SetImageBitmap(bitmap);
Or
imageview.SetImageBitmap(BitmapFactory.DecodeResource(Resources, Resource.Drawable.YOUR_ICON ));
You could also refer to this answer.