I have a NuGet package where a style was defined.
<resources>
<style name="BaseTheme" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
[...]
</style>
[...]
</resources>
I installed it in my new project and I want to use it as a parent for the main theme.
I tried many formattings (with and without @
, :style/
, Resources.Style
etc.)
style name="AppTheme" parent="BaseTheme"
style name="AppTheme" parent="@style/BaseTheme"
style name="AppTheme" parent="@PACKAGE:style/BaseTheme"
style name="AppTheme" parent="PACKAGE:style/BaseTheme"
[...]
But the error is always the same:
Error retrieving parent for item: No resource found that matches the given name 'BaseTheme'
Is this doable ? If so, how ?
Thanks.