Is there a simple way to disable a user interacting with an activity. To be done when there is an action running (and a spinning progress bar in the title bar)
EDIT:
I have solved this using a custom method - which I did not want to do:
public static void setViewGroupEnabled(ViewGroup view, boolean enabled)
{
int childern = view.getChildCount();
for (int i = 0; i< childern ; i++)
{
View child = view.getChildAt(i);
if (child instanceof ViewGroup)
{
setViewGroupEnabled((ViewGroup) child, enabled);
}
child.setEnabled(enabled);
}
view.setEnabled(enabled);
}
If anyone finds a better way I'd like to hear about it! Thanks.