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