F0RIS / sweet-alert-dialog

SweetAlert for Android, a beautiful and clever alert dialog
http://www.pedant.cn
286 stars 82 forks source link

OK button text not centered vertically #55

Open ghost opened 3 years ago

ghost commented 3 years ago

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();

image

It would be great if you can give me some advice if it is possible to center it vertically - thank you :)