Monday, February 13, 2012

How to Disable any input for Android?

Sometimes you just want to not allow the user to click on anything for a while (for example while loading stuff, but you don't want to display a progress dialog). The simplest way to do this is to use a blank Dialog.

overlayDialog = new Dialog(context, android.R.style.Theme_Panel);
overlayDialog.show();

No comments:

Post a Comment