colorInversePrimary and colorShadow is missing in Theme.Material3.Light.NoActionBar
Asked Answered
S

1

6

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.

Susi answered 28/2, 2022 at 8:26 Comment(2)
I also face same problem. When deleted these two attribute, "android:windowTranslucentStatus" not working properly. I don't know why exactly this happening.Shipwreck
Check my answer, it's a currently working fixSaltatory
S
5

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" />
Saltatory answered 10/3, 2022 at 2:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.