Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different drawable when selected #31

Open
connyduck opened this issue Nov 29, 2017 · 6 comments
Open

Different drawable when selected #31

connyduck opened this issue Nov 29, 2017 · 6 comments

Comments

@connyduck
Copy link

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
Copy link

anyone know the solution?

@connyduck
Copy link
Author

yes, use another library

@flyinggor
Copy link

@connyduck Which one do you use?

@connyduck
Copy link
Author

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

@AndSync
Copy link

AndSync commented Jun 16, 2020

@connyduck bug your animation is different ?

@wojiaosuxiaobai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants