subrata sharma
subrata sharma

Reputation: 344

colorInversePrimary and colorShadow is missing in Theme.Material3.Light.NoActionBar

colorInversePrimary and colorShadow is missing in Theme.Material3.Light.NoActionBar
my material version is 'com.google.android.material:material:1.6.0-alpha03'

 <item name="colorInversePrimary">@color/md_theme_dark_inversePrimary</item>
    <item name="colorShadow">@color/md_theme_dark_shadow</item>

this two line. I get it from material-theme-builder, but when I add into my project it's coming as an error. Other colors are fine.

Upvotes: 6

Views: 495

Answers (1)

Danijel Markov
Danijel Markov

Reputation: 168

Seems like they are adding more color roles. For now, use the temporary fix with applying attrs.

<attr name="colorInversePrimary" format="reference|color" />
<attr name="colorShadow" format="reference|color" />

Upvotes: 5

Related Questions