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

ripple issue when setting drawable #3

Open
ashkanpower opened this issue Dec 25, 2018 · 2 comments
Open

ripple issue when setting drawable #3

ashkanpower opened this issue Dec 25, 2018 · 2 comments

Comments

@ashkanpower
Copy link

On Samsung j7 android 6.1 when changing background drawable with ripple effect, ripple plays without touching.

even setting clickable to false wont fix the problem, but fixed problem for my other devices

this.setClickable(false);
this.setBackground(offRipple);
this.setClickable(true);

hivabutton

@duanhong169
Copy link
Owner

Could you please provide a runnable project which can reproduce the issue?

@ashkanpower
Copy link
Author

ashkanpower commented Dec 29, 2018

https://github.com/meysamhadigheh/HivaTecTools

HivaTecTools/app/src/main/java/hivatec/ir/hivatectoolstest/activities/ButtonActivity.java

there is a sample of multiselect buttons.

everything happens inside a view I created as button :
HivaTecTools/hivatectools/src/main/java/hivatec/ir/hivatectools/views/HivaButton.java

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

2 participants