AppCompat / framework color attr | MDC-Android color attr |
---|---|
colorPrimary |
colorPrimary |
colorPrimaryDark |
colorPrimaryVariant (specify android:statusBarColor explicitly) |
N/A | colorOnPrimary |
colorAccent |
colorSecondary |
N/A | colorSecondaryVariant |
N/A | colorOnSecondary |
N/A | colorSurface |
N/A | colorOnSurface |
android:colorBackground |
android:colorBackground |
N/A | colorOnBackground |
colorError |
colorError |
N/A | colorOnError |
android:textColorPrimary , android:textColorSecondary , etc. |
N/A (prefer MDC "on" attrs or use defaults) |
colorControlNormal , colorControlHighlight , colorControlActivated |
N/A (prefer MDC "on" attrs or use defaults) Note: These are still used to tint MaterialCheckBox , MaterialRadioButton , SwitchMaterial and MaterialToolbar icons. |
Last active
October 2, 2024 04:11
-
-
Save ricknout/e0ed913922e2e9c254427e1b6b6bd636 to your computer and use it in GitHub Desktop.
AppCompat / framework to MDC-Android color mapping table
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment