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):
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
Post a Comment