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

Chnage Confirm Button background color #109

Closed
jainshravan123 opened this issue Oct 26, 2016 · 2 comments
Closed

Chnage Confirm Button background color #109

jainshravan123 opened this issue Oct 26, 2016 · 2 comments

Comments

@jainshravan123
Copy link

How to change the confirm button background color of sweet alert in android?

SweetAlertDialog confirmation_dialog; confirmation_dialog = new SweetAlertDialog(HeartBeatIndexModule.this, SweetAlertDialog.NORMAL_TYPE); confirmation_dialog.setTitleText("Do you want to Start?"); confirmation_dialog.setContentText("Are you Sure"); confirmation_dialog.show();

@tsunhua
Copy link

tsunhua commented Jan 6, 2017

You can change any colors you want by changing the following values in colors.xml

<color name="blue_btn_bg_color">#AEDEF4</color>
    <color name="blue_btn_bg_pressed_color">#96BFD2</color>
    <color name="button_text_color">#FFFFFF</color>
    <color name="error_stroke_color">#F27474</color>
    <color name="float_transparent">#00000000</color>
    <color name="gray_btn_bg_color">#D0D0D0</color>
    <color name="gray_btn_bg_pressed_color">#B6B6B6</color>
    <color name="material_blue_grey_80">#ff37474f</color>
    <color name="material_blue_grey_90">#ff263238</color>
    <color name="material_blue_grey_95">#ff21272b</color>
    <color name="material_deep_teal_20">#ff80cbc4</color>
    <color name="material_deep_teal_50">#ff009688</color>
    <color name="red_btn_bg_color">#DD6B55</color>
    <color name="red_btn_bg_pressed_color">#CD5B55</color>
    <color name="success_stroke_color">#A5DC86</color>
    <color name="sweet_dialog_bg_color">#FFFFFF</color>
    <color name="text_color">#575757</color>
    <color name="trans_success_stroke_color">#33A5DC86</color>
    <color name="warning_stroke_color">#F8BB86</color>

@jainshravan123
Copy link
Author

Yes. It's working fine by overriding these color values with in color.xml file.
Thanks for helping me.

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