Please watch: “Working with Bottom Navigation Bar Android Example || Part #1 ”
Problem: How to load WebView with ProgressBar?

Earlier I have published an video for Android – WebViewClient example where we have discussed about how to load URL inside the application instead of opening a native browser.

Now, just consider the case where we require to include progress bar to show loading process. Here we can either show ProgressDialog or include ProgressBar inside the XML layout.
– If we include ProgressBar then we have to make it INVISIBLE or GONE whenever page loading is finished
– And if we display ProgressDialog then we have to dismiss it whenever page loading is finished.

Simple WebView in android studio :

Progressbar in webview in Android Studio:

Title And Back Button Event Webview Android Studio:

Overflow Menu In Webview Android Studio:

Source Code :


Xem thêm bài viết khác:



  1. Philemon Sigei Reply

    The progress bar runs continuously not stopping. How can I stop/hide it after opening the web page in webview?

  2. Ocioso Tropical Reply

    works but still showing the Progressbar forever, how to stop it?

  3. When I press Ctrl-O, android.webkit.WebChromeClient methods not showing up. What did I miss?

Write A Comment