I need to show a ProgressDialog when my WebView is loading, so that the user cannot see the page loading in the background. I can only get my dialog to show up as a little box, I would like the dialog to fill up all the space below the action bar.
How can I achieve this? I have used the method progressDialog.setProgressStyle() but without any luck.
If there are any other better ways of achieving this, please let me know. My ultimate aim is for the app to behave like the Facebook (pre-native) app, where the ‘Loading’ indicator was visible until the page had finished loading.
I resolved this issue myself. I have used a different method to achieve the same effect. I am not sure whether or not it is best practice, but my webview layout now looks like this:
And to show and hide the progress I use:
…