I have noticed that button text is not centered vertically, either when I do not use setConfirmButton (then button says Ok) and when I use setConfirmButton (to make button text uppercase):
String html = "Powiadomienia zostaną wyłączone do czasu ponownego uruchomienia aplikacji.";
new SweetAlertDialog(this, SweetAlertDialog.NORMAL_TYPE)
.setTitleText("Uśpij aplikację")
.setContentText(html)
.setConfirmButton("OK", sweetAlertDialog -> {
// TODO disable notifications
finish();
})
.show();
It would be great if you can give me some advice if it is possible to center it vertically - thank you :)
I have noticed that button text is not centered vertically, either when I do not use setConfirmButton (then button says Ok) and when I use setConfirmButton (to make button text uppercase):
It would be great if you can give me some advice if it is possible to center it vertically - thank you :)