android - When should one use Theme.AppCompat vs ThemeOverlay.AppCompat? -


there following theme.appcompat classes:

theme.appcompat theme.appcompat.light theme.appcompat.light.darkactionbar theme.appcompat.noactionbar theme.appcompat.light.noactionbar theme.appcompat.dialogwhenlarge theme.appcompat.light.dialogwhenlarge theme.appcompat.dialog theme.appcompat.light.dialog theme.appcompat.compactmenu 

and following themeoverlay.appcompat classes:

themeoverlay.appcompat themeoverlay.appcompat.light themeoverlay.appcompat.dark themeoverlay.appcompat.actionbar themeoverlay.appcompat.dark.actionbar 

why 1 use themeoverlay.appcompat.light vs theme.appcompat.light example? see there less attributes defined themeoverlay -- curious intended use case themeoverlay is.

per theme vs style blog post creator of appcompat:

[themeoverlays] special themes overlay normal theme.material themes, overwriting relevant attributes make them either light/dark.

themeoverlay + actionbar

the keen eyed of have seen actionbar themeoverlay derivatives:

  • themeoverlay.material.light.actionbar
  • themeoverlay.material.dark.actionbar

these should used action bar via new actionbartheme attribute, or directly set on toolbar.

the things these differently parents change colorcontrolnormal android:textcolorprimary, making text , icons opaque.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -