Android Question Disable Activity until data is loaded

Siam

Active Member
Licensed User
Longtime User
Hello,

i will disable the Activity until the needet data is loadet from a webserver
like the ProgressDialogShow2("App wird Initialisiert",False) function.
With this is the Activity Grayand frozzen and i can't interact until the dialog is closed.

Now i will show a Progressbar but i didn't find a solution to freeze the Activity until i have loadet my data.

Is there a solution ?

regards

Andy
 

Anser

Well-Known Member
Licensed User
Longtime User
I have implemented a similar solution using a Semi Transparent panel and consuming the Click even of the Panel.

I am using ActionBar as ToolBar using AppCompat

When I use ActionBar as ToolBar using AppCompat, whatever below the ActionBar is not clickable and working as expected
But the over flow menu etc or whatever on the ToolBar/ActionBar is Clickable.
Is there anything extra to be taken care of to avoid the click on the ToolBar too?. I mean, block the whole screen
 
Upvote 0
Top