ChadCSong / ShineButton

This is a UI lib for Android. Effects like shining.
MIT License
4.22k stars 543 forks source link

Different drawable when selected #31

Open connyduck opened 6 years ago

connyduck commented 6 years ago

I would like the ShineButton to have a different drawable when selected, e.g. heart outline and full heart, not only different color. Is there a way to achieve this with xml (if not, can you add one? :3) What is the recommended way to achieve this programmatically?

thetnaingmizo commented 6 years ago

anyone know the solution?

connyduck commented 6 years ago

yes, use another library

flyinggor commented 6 years ago

@connyduck Which one do you use?

connyduck commented 6 years ago

I use my own fork https://github.com/connyduck/SparkButton

AndSync commented 4 years ago

@connyduck bug your animation is different ?

wojiaosuxiaobai commented 3 years ago

override public void setShape(Drawable drawable) { shape = drawable; invalidate(); // add this code can refresh PorterImageView this.onSizeChanged(getMeasuredWidth(),getMeasuredHeight(),0,0); }

it works for me