First, you have to figure out when the click happens :
webView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url){ webView.loadUrl(url); // Here the String url hold 'Clicked URL' return false; } });
Then, you have to put the Progressbar in a FrameLayout with your WebView.
<FrameLayout android:layout_width="match_parent" android:layout_height="match_parent"> <Progressbar android:layout_width="wrap_content" android:layout_height="wrap_content"> <WebView android:layout_width="match_parent" android:layout_height="match_parent"> </FrameLayout>
So, when the click happens, you can show your progressbar inside your Activity.
webView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url){ if (url.equals("your_url"){ progressbar.setVisibility(View.VISIBLE); } return false; } });