Using horizontal style ProgressDialog in WebView


Last Updated:

  1. cred05

    cred05 Well-Known Member This Topic's Starter

    Joined:
    Oct 17, 2008
    Messages:
    178
    Likes Received:
    3
    I'm trying to have a horizontal progressdialog load as the webpage loads. I basically want to use getWindow().requestFeature(Window.FEATURE_PROGRESS); but inside the progressdialog. Any help would be appreciated.

    Here is what I have right now:

    pd = new ProgressDialog(AppName.this);
    pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    pd.setMessage("Loading. Please wait...");
    pd.setCancelable(true);
    pd.show();

    if I add pd.incrementProgressBy(Window.FEATURE_PROGRESS); it fills it up to 2% and then stops there.
     

    Advertisement

Share This Page

Loading...