android - How to add glow effect on custom marker -


my app has custom images , set marker icons based on different conditions. i'm using marker's seticon() method that.

my question is, how can add glow effect on marker when selected. have selected/unselected logic in place, want create glow effect around shape of image used icon of marker. sample (the glow in question needn't in rounded shape):

enter image description here

thank help!

did try use blurmaskfilter outer setting? maybe playing paint , color can help

bitmap alpha = origin.extractalpha(); blurmaskfilter blurmaskfilter = new blurmaskfilter(5, blurmaskfilter.blur.outer);  paint paint = new paint(); paint.setmaskfilter(blurmaskfilter); paint.setcolor(0xffffffff);  canvas canvas = new canvas(origin); canvas.drawbitmap(alpha, 0, 0, paint); 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -