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

Button colors do not work #21

Open
fumatamax opened this issue Apr 29, 2021 · 4 comments
Open

Button colors do not work #21

fumatamax opened this issue Apr 29, 2021 · 4 comments

Comments

@fumatamax
Copy link

I tried to add the ID of the button color and it does not change. I have also tried to add a string with the hexadecimal of the color. But it fails completely, because it needs an ID of the COLOR.

I don't know if it has something to do, but now the buttons by default comes with the XML attribute to change the background of the button, called: app:backgroundTint.

I don't know if I need to update the FancyDialog code, or maybe I'm doing something wrong. So that the change of colors of the fancydialog buttons is not realized concretely: setNegativeBtnBackground and setPositiveBtnBackground.

@Shashank02051997
Copy link
Owner

@fumatamax
Pass your color that's it

.setPositiveBtnBackground(R.color.positiveButton) // Pass the color from color.xml
.setNegativeBtnBackground(R.color.negativeButton) // Pass the color from color.xml

@arjun30
Copy link

arjun30 commented Feb 11, 2022

color is not working for buttons

.setTitleTextColor(R.color.colorPrimary)
.setDescriptionTextColor(R.color.black)
.setPositiveBtnText("Ok")
.setPositiveBtnBackground(R.color.fillColor)
.setGifResource(R.drawable.gif1) //Pass your Gif here

@mikebgrep
Copy link

Same here the button are white, and the text is white and is not visible in this case can we have fix for this soon I see the issue is form Jul 1 2021 i try on emulators and real devices text is white and color of the button does not change

@mikebgrep
Copy link

Edit: The problem appear is from the button in the xml if you use compat dependancy the button need to be changed to appcompatbutton and you can set the color .

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

4 participants