I am using PNG image but its size is getting too big so I have to compromise with its quality. So i was thinking vectors may be the another way around ? Example will be a gr
For version < 21,
If you want to directly pass in vector drawable resource id into setSmallIcon(): No way.
For setLargeIcon() indirectly, yes. Use
VectorDrawableCompat drawable = VectorDrawableCompat.create(context.getResources(), resource id, theme);
then create Bitmap from this drawable and pass into setLargeIcon()