Q:

Android - Hiding TitleBar after WebView Loads

I currently have a WebView in an app I am working on and after each page loads in the WebView I would like to hide the TitleBar. I have looked at this question and the answer looks like it should do exactly what I want, however the TitleBar is never hidden after the page finishes loading. 
The code I am using is the same as the answer I have linked to, but I have also included it bellow. I can confirm that onProgressChanged is being called and that progress does get reported as 100 when the page finishes loading, but setProgressBarIndeterminateVisibility(false) and setProgressBarVisibility(false) both seem to do nothing. I am using requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS) and requestWindowFeature(Window.FEATURE_PROGRESS) before I sent content. 
I have tested this on Android 2.3 and 4.1 and the result is the same for both, the TitleBar is not hidden.
mWebView.setWebChromeClient(new WebChromeClient() {
            @Override
            public void onProgressChanged(WebView view, int progress) {
                setProgress(progress * 100);
                if(progress == 100) {
                    setProgressBarIndeterminateVisibility(false);
                    setProgressBarVisibility(false);
                }
            }
});

A:

The old title bar is somewhat limited in functionality. You will probably have to make your own title bar within the layout of the activity and show/hide it yourself with setVisibility(). 
If you are using the ActionBar instead of the old title bar (which is what people should be doing anyways), it has show() and hide() methods you can use to do what you want.

