I put a progress bar (circular) in the action bar with the following code:
<item
    android:id="@+id/menu_progress"
    android:actionLayout="@layout/action_progress"
    android:menuCategory="container"
    android:showAsAction="always">
</item>
and in the java code:
public void onProgressChanged(WebView view, int progress) 
        {  
            if (progress<100)
            {
               progressBar.setVisibility(ProgressBar.VISIBLE);
            }
            else if (progress==100)
            {
               progressBar.setVisibility(ProgressBar.GONE);
            }
            progressBar.setProgress(progress);  
        }   
However, the progress bar will not disappear even after the webpage has loaded, and I have no clue why.
Can anyone help? Thank you.