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

Ask for advice on how to set the style in the conditional statement #156

Open
VahidGarousi opened this issue Jul 23, 2021 · 0 comments
Open

Comments

@VahidGarousi
Copy link

VahidGarousi commented Jul 23, 2021

Hi, I hope you are well.
How can I set two different styles for a button in the correct or incorrect condition without overlapping styles?

    if (isChecked) {
                Paris.style(binding.btnPay).apply(R.style.Theme_PrimaryButton)
            } else {
                Paris.style(binding.btnPay).apply(R.style.Theme_SecondaryButton)
            }

The code above has a problem and does not change the whole style. It does not reset in principle and overlaps the styles

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

1 participant