Redeem Now
Read More
Read now

Add a loader when openning Webview


What is Webview?

Webview: A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity. It uses the WebKit rendering engine to display web pages and includes methods to navigate forward and backward through a history, zoom in and out, perform text searches and more.

We can easily add our loading text and loader by creating a WebChromeClient subclass.


This class is called when something that might impact a browser UI happens, for instance, progress updates and JavaScript alerts.

In this example MyChromeBrowser is a subclass of WebChromeClient, that override the onProgressChanged( ) method and here we can set the title of Activity.

Now add MyChromeBrowser object to our WebView,


-With this method, we can easily add loader for every page loading.

– one more method we can add our progress. see the Link- 

Layout looks like –


. . .


Add Your Comment

Be the first to comment.

Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again