You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating an app which I use this library for adding the cart item but the problem is button colour not change in dynamically. I use this code but not change the color
numberButton.setOnValueChangeListener(new ElegantNumberButton.OnValueChangeListener() {
@Override
public void onValueChange(ElegantNumberButton view, int oldValue, int newValue) {
if(newValue!=0)
numberButton.setBackgroundColor(getResources().getColor(R.color.lime_green));
else
numberButton.setBackgroundColor(getResources().getColor(R.color.yellow));
}
});
The text was updated successfully, but these errors were encountered:
I am creating an app which I use this library for adding the cart item but the problem is button colour not change in dynamically. I use this code but not change the color
The text was updated successfully, but these errors were encountered: