Android: hide action bar while view load.

Setting the properties “windowNoTitle” to true on your theme  will hide the ActionBar  but when you do “getSupportActionBar” in code you get a “NullPointerException”. So the trick is to use two different themes both extending parent=”Theme.AppCompat.Light” You would do something like Now you can set the AppThemeNoBar as the theme for the application and AppThemeBar …