colorprimarydark
colorPrimaryDark is an Android theme attribute that specifies the color used for the device status bar when an app uses a Material Design theme. Introduced with Android 5.0 Lollipop (API 21), it provides a distinct shade from colorPrimary and is intended to improve legibility of status icons against the status bar. The attribute is part of the app's theme and is typically defined in styles.xml and backed by a color resource defined in colors.xml.
Usage involves defining a color resource and referencing it in the app theme. For example, a color
Night mode and theming: To support dark or alternate themes, provide a value for colorPrimaryDark under a
Compatibility and notes: colorPrimaryDark affects devices with a system status bar color feature; on pre-Lollipop devices