I have an Android with many explicative popup dialogs.
Those I want to close only if a close button inside is pressed, not when I tap on the screen outside the dialog.
I am using setDisposeWhenPointerOutOfBounds set to false, but this only seems to work for dialogs that are not the popup style.
Is there a way to achieve this behaviour also for the popup dialogs?
Many thanks in advance.
Here is my code:
public void dialogTest () {
Dialog dialog = new Dialog("Test");
dialog.add(new Button ("Test")).add(new Button("TestTwo"));
dialog.setDisposeWhenPointerOutOfBounds(false); // flag is set to false, but dialog closes anyway when I tap on the screen
dialog.showPopupDialog(buttonTest);
}