In the manifest for all activations the re-creation is prohibited. There are no alternative activities for landscape orientation. If you rotate the device and cause any activation - the font size of the header becomes much smaller. Moreover, this size does not change, even if you return the application to portrait orientation. On the other hand, the font size of the title bar of a window created in portrait orientation does not decrease when the screen is rotated. Why does the font size of a window created in landscape orientation decrease?

  • Do you have an ActionBar or Toolbar ? - Flippy
  • In app Toolbar - Newbie
  • Try setting the attribute android:layout_height="?attr/actionBarSize" - Flippy
  • I understand your idea, it's not about the toolbar itself, but about the font size of the title. However, I tried, did not help - Beginner

1 answer 1

The tag Toolbar

 app:titleTextAppearance="@style/ToolbarTitle" 

In styles.xml

 <style name="ToolbarTitle" parent="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"> <item name="android:textSize">20sp</item> </style>