I have set configChanges="orientation|landscape"
to keep Activity instance after rotation but now the title size in action bar not changes after rotation. I'm using AppCompat.
I'm trying to hide and show title again in onConfigurationChanged:
public void onConfigurationChanged (Configuration newConfig)
{
super.onConfigurationChanged(newConfig);
getSupportActionBar().setDisplayShowTitleEnabled(false);
getSupportActionBar().setDisplayShowTitleEnabled(true);
}
And this not help. How to set the title size changing after rotation?
I want to do something like this:
Images taken from this question: Android Toolbar: small title text in landscape mode