Relative Content

Tag Archive for androidandroid-alertdialog

setPositiveButton text not appearing

After adding a splash screen to my app, the text of my setPositiveButton – “Finish” – has stopped appearing. Where the “Finish” should appear, there’s a blank space. But clicking that blank space correctly executes the finishQuiz() method that contains the setPositiveButton.

Should I override the button listeners of an AlertDialog?

I was surprised to realize that an AlertDialog always closes on the tap of any button. The dialog.dismiss() I’ve put in every callback so far is therefore completely unnecessary. I found two questions with answers explaining how I can prevent the AlertDialog from closing when tapping a button.