myWebView.setWebViewClient(new WebViewClient() {
public void onPageStarted(WebView view, String url, Bitmap favicon) {
super.onPageStarted(view, url, favicon);
findViewById(R.id.progress1).setVisibility(View.VISIBLE);
}
@Override
public void onPageFinished(WebView view, String url) {
findViewById(R.id.progress1).setVisibility(View.GONE);
}
});
And inside xml add this line of code
<ProgressBar
android:id="@+id/progress1"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
Online adult games!!!
hey thanks for your post..it's working fine...can you tell me how to replace progress bar with logo image??
ReplyDeletehm I'll try to find a solution
Deleteyou cant for that you have to build a splash screen and then add the progressbar and logo to it
DeleteGreat!!! Thank you
ReplyDeletehi.. i want to update my horizontal progress bar in WebView Client but it is not working can you help me
ReplyDeleteBOSS!!!!
ReplyDeleteBOSS!!!!
ReplyDeletehow can i use this code in a fragment
ReplyDeleteGood there bless you
ReplyDeleteasd
ReplyDeleteWhat a great web blog . I like this blog because of its design and interface. Private Tutor in Wellington It is user friendly and it is nice to visit the blog.
ReplyDelete