Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render Problem '@attr/colorShadowDark' in current theme. #114

Open
InternationalSchoolingApp opened this issue Nov 22, 2022 · 4 comments
Open
Labels
bug Something isn't working

Comments

@InternationalSchoolingApp

Please Suggest me what to to.

@InternationalSchoolingApp InternationalSchoolingApp added the bug Something isn't working label Nov 22, 2022
@saurabhthesuperhero
Copy link

Im facing same issue adding additional details, this occurs on latest android studio like dolphin.

@saurabhthesuperhero
Copy link

Temporary fix is downgrating to ChipMunk, but for me i cant downgrade, and its basically studios mistake not owner of library

@saurabhthesuperhero
Copy link

saurabhthesuperhero commented Nov 23, 2022

Hi man Just found some solution:
Add this in your themes, colors will be differnt ofcourse, the root issue is android is not able to recognise inner classes xmls really disgusting but this should solve your issue and not problem because of this library so I guess okay to close for now (@fornewid ) until new android studio fix is coming.

      <item name="colorShadowDark">@color/black</item>
        <item name="colorShadowLight">@color/white</item>

ps: You can track for studio fixes here : https://developer.android.com/studio/releases/fixed-bugs/studio/2021.3.1

@SilentVirus27
Copy link

SilentVirus27 commented Dec 3, 2022

Addition to above Solve

Add Following color in your color.xml for getting same output in render without error
//Neumorph render issue
<color name="neumorph_shadowColorLight">#B5FFFFFF</color>
<color name="neumorph_shadowColorDark">#D89A9A9A</color>

Add following line in Theams <style>

<item name="colorShadowDark">@color/neumorph_shadowColorDark</item>
<item name="colorShadowLight">@color/neumorph_shadowColorLight</item>

This will solve render issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants