I'm using canvas to draw my custom shape, and I want to add glow effect on it's end like in Android Progressbar View. I tried to look at Android sources, but did not found how exactly such effect is achieved.

The glow effect is part of the PNG image, see its source file. It is used (indirectly via drawable/progress_horizontal_holo_light) as value of android:progressDrawable.
You can achieve the glowing by using a BlurMaskFilter which can be used via paint.setFilterMask(maskFilter).
You might need to make multiple draws with different filters to achieve some cool effects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With