1. Download our Official Android App: Forums for Android!

Apps Using horizontal style ProgressDialog in WebView

Discussion in 'Android Development' started by cred05, Aug 26, 2010.

  1. cred05

    cred05 Well-Known Member
    Thread Starter
    56

    Oct 17, 2008
    178
    3
    56
    Ohio
    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...