manojbhadane/QButton

Disable state

Closed this issue · 6 comments

Hi, i'm here again.

Can you consider to add a disable state to the button? maybe when the user disable it you can set an alpha or add a mask color.

Hi, i'm here again.

Can you consider to add a disable state to the button? maybe when the user disable it you can set an alpha or add a mask color.

Sure.. will try to add it ASAP

Version v1.3 updated with above feature.. please check

implementation 'com.github.manojbhadane:QButton:v1.3'

Just use android:enabled="true or false"

Version v1.3 updated with above feature.. please check

implementation 'com.github.manojbhadane:QButton:v1.3'

Just use android:enabled="true or false"

Hi! Thanks, good lib.
I have a problem: If we set enabled = false and fast change this value to false, then button change color (like disabled) and we can click on it (clickable). How to update button state after fast changing "enabled"?

.invalidate() not helps me

Ohh, man. Why are you doing only 0.6 alpha?
Why not "else" and set setAlpha(1f);?

For those, who have this problem, the fast way to resolve is:

cancelTask_btn.setEnabled(true);
cancelTask_btn.setAlpha(1f);