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

无法更换点击后的图片 #53

Open
duguodong258 opened this issue Dec 17, 2019 · 3 comments
Open

无法更换点击后的图片 #53

duguodong258 opened this issue Dec 17, 2019 · 3 comments

Comments

@duguodong258
Copy link

大佬 你好 我发现这个库有个缺陷 就是只能通过填充颜色去改变点击后的效果 没办法设置图片的吗 因为有些图片不是单色的 所以我只好放弃使用了 唉 还是说这个库有设置图片的属性我没找到吗

@duguodong258 duguodong258 changed the title 无法点击后的更换图片 无法更换点击后的图片 Dec 17, 2019
@AndSync
Copy link

AndSync commented Jun 16, 2020

同求

1 similar comment
@jack9095
Copy link

同求

@AndSync
Copy link

AndSync commented Nov 12, 2020

让ShineButton 直接继承AppCompatImageView 报错的地方注释掉
然后在setChecked(boolean checked, boolean anim, boolean callBack)方法里面分别设置不同的图片即可
当然需要添加自定义属性方便设置不同状态的图片

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

3 participants