Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9112433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:44:03+00:00 2026-06-17T03:44:03+00:00

I need to show a ProgressDialog when my WebView is loading, so that the

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:44:05+00:00Added an answer on June 17, 2026 at 3:44 am

    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:

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
    
        <!-- WebView progress -->
    
        <LinearLayout
            android:id="@+id/webProgress"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_gravity="center"
            android:gravity="center_horizontal"
            android:orientation="vertical"
            android:visibility="gone" >
    
            <ProgressBar
                style="?android:attr/progressBarStyleLarge"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="8dp" />
    
            <TextView
                android:id="@+id/login_status_message"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginBottom="16dp"
                android:text="Loading"
                android:textAppearance="?android:attr/textAppearanceMedium" />
        </LinearLayout>
    
        <WebView
            android:id="@+id/webView"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:visibility="visible" />
    
    </LinearLayout>
    

    And to show and hide the progress I use:

    View webProgress = findViewById(R.id.webProgress);
    

    …

    public void showWVProgress() {
        webProgress.setVisibility(View.VISIBLE);
        isWVProgressShowing = true;     
    }
    
    public void hideWVProgress() {
        webProgress.setVisibility(View.GONE);
        isWVProgressShowing = false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I show a progress dialog without the message? I only need to
I need to show picture of user in my application and I retrieve that
private void Load() { new pbar().execute(); //dialog = ProgressDialog.show(Display.this, , Loading. Please wait..., true);
I'm using a thread so that I can show a progress dialog while my
In my application I need to show a progress dialog when downloading and loading
I need to show a div positioned relative to where the link is that
I need to show more than one report on a Page like Classic Report,
When calling progressDialog = ProgressDialog.show(this, null, null, true); usually the developers wants to only
I need a way to show loading image near text view. In my app,
I need to show a progress dialog, while clicking a tab, My code id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.