F0RIS/sweet-alert-dialog

Display incomplete

Closed this issue · 2 comments

I use this fork in kotlin, and here is the code snippet:

binding.appBarMain.fab.setOnClickListener { view ->
            SweetAlertDialog(this, SweetAlertDialog.WARNING_TYPE)
            .setTitleText("<font color='#6750a4'>Material3</font> title")
            .setContentText("Big <font color='#92f8b2'>green </font><b><i> bold</i></b>")
            .setContentTextSize(21)
            .setStrokeWidth(2f)
            .setConfirmClickListener(null)
            .show()
        }

then, I encountered the problem of incomplete display.
IMG_20240224_133557.jpg

So, are there any good solutions? I've seen similar issues, but their solutions don't really work.

I've tried a few things, and it still doesn't change the fact that it's cut.

Fortunately, I noticed the tag attributes in styles.xml and found it effective to modify them.