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.actionbarthemeoverlay.material.dark.actionbarthese should used action bar via new
actionbarthemeattribute, or directly set on toolbar.the things these differently parents change
colorcontrolnormalandroid:textcolorprimary, making text , icons opaque.
Comments
Post a Comment