I have a problem when I set the theme on my app to Theme.AppCompat.Light.DarkActionBar. For some reason there is a white bar above my actionbar. How do I remove this? Unfortunately, I can't show you a picture of it as I'm not allowed to post pictures yet. But it's just a white empty bar with the same title as the action bar has.
My onCreate method looks like this as of now:
@Override
protected void onCreate(Bundle savedInstanceState) {
if(PreferenceManager.getDefaultSharedPreferences(getBaseContext()).getString("theme_preference", "1").equals("AppTheme")) {
setTheme(R.style.AppTheme);
} else {
setTheme(R.style.DarkTheme);
}
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_transmit);
AppTheme is Theme.AppCompat.Light.DarkActionBar and DarkTheme is Theme.AppCompat.
How do I remove the white bar that appears?