DEV Community

Mayank
Mayank

Posted on

Answer:

Found a bit cleaner answer.

The trick in the previous answer - setting vector drawable with increased size as background may not always look very pretty.

Another solution is to draw bitmap with proper shadow.

Follow this question to get the bitmap from vector drawable.

public static Bitmap getBitmapFromVectorDrawable(Context context,

Top comments (0)