Progressbar in ActionBar
<p>I am working with an app which will load a website Inside the app .Now i want to add a ProgressBar in action bar without swipe up to repress feature.</p>

<p><strong>Like that</strong></p>

<p><a href="https://i.stack.imgur.com/lry8Y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lry8Y.png" alt="enter image description here"></a></p>

<p>I am using <strong>Fragment</strong> in my app.  </p>

<p><strong>WebviewFragment</strong></p>

<pre><code>public class WebviewFragment extends Fragment {

    WebView webView;
    String newslink;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
           View view = inflater.inflate(R.layout.fragment_webview, container, false);

        newslink = getArguments().getString("LINK");


        webView = (WebView) view.findViewById(R.id.webView);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.loadUrl(newslink);
        webView.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }
        });
        webView.setOnKeyListener(new View.OnKeyListener() {
            public boolean onKey(View v, int keyCode, KeyEvent event) {
                if ((keyCode == KeyEvent.KEYCODE_BACK) &amp;&amp; webView.canGoBack()) {
                    webView.goBack();
                    return true;
                }
                return false;
            }
        });


        return view;

    }


}
</code></pre>

<p><strong>fragment_webview.XML</strong></p>

<pre><code>&lt;?xml version="1.0" encoding ="utf-8"?
&lt;LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/swipe_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent" &gt;




        &lt;WebView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:id="@+id/webView" /&gt;


&lt;/LinearLayout&gt;
</code></pre>

<p>Any <strong>solution</strong> for me ? </p>