devadvance / circularseekbar

Custom circular SeekBar (Circle, Semi-circle, and Ellipse) View/Widget for Android
Apache License 2.0
464 stars 134 forks source link

Border Halo Pointer Color onTouch event #3

Closed acappelli closed 10 years ago

acappelli commented 10 years ago

Hi! How to set color border of pointer halo on touch event? It's keep blue..

sud007 commented 10 years ago

try making changes in the Circularseekbar.java Begin with changing the values of all the DataMembers declared right in the beginning. I mean all the values which are declared as 'private static final float' right on the top. They have been declared as default values.

Sizes values are in 'f' (Floats) while color values are Direct color names or RGB values.

devadvance commented 10 years ago

If you set the colors in XML, there are two colors that matter: "pointer_color" changes the color for the inner circle, as well as the ring that shows up when you are touching the pointer. "pointer_halo_color" changes the color for the halo around the inner circle. You can also use "pointer_alpha_ontouch" to change what the halo transparency when you touch the pointer.|

Right now there is no way to set a separate color for the halo when it is touched. I can add this in and create another XML attribute for it.

devadvance commented 10 years ago

I added another attribute that you can use: pointer_halo_color_ontouch This attribute lets you change the color of the halo when the pointer is touched. You can use this in combination with the pointer_alpha_ontouch attribute to customize the pointer when touched.

EDIT: I also uploaded a quick demo project showing how to use a couple features, including custom colors: https://github.com/devadvance/circularseekbardemo

acappelli commented 10 years ago

Thanks for this change!!

sud007 commented 10 years ago

Initially I tried using xml but couldn't do it, even after disabling the 'DEFAULT_USE_CUSTOM_RADII'. I may have gone wrong somewhere.

Amazing! Thanks.