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

cannot change btn's colors #16

Closed
dmatsanganis opened this issue Sep 2, 2021 · 1 comment
Closed

cannot change btn's colors #16

dmatsanganis opened this issue Sep 2, 2021 · 1 comment

Comments

@dmatsanganis
Copy link

i have follow the steps as the read.me guide it, but i cannot change the color of the two buttons. Neither the .setNegativeBtnBackgroundRes not the .setNegativeBtnBackground seems to work properly (same for the positive button). Is anything i can do to change the default color or did I have to do anything more in order to change the btn's color?

@Shashank02051997
Copy link
Owner

Shashank02051997 commented Sep 5, 2021

@dimitrismatsanganis
Pass your color that's it

.setPositiveBtnBackgroundRes(R.color.positiveButton) // Pass the color from color.xml
.setNegativeBtnBackgroundRes(R.color.negativeButton) // Pass the color from color.xml

If this will not resolve the issue then lets connect on any social site medium where I can help you with it

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