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

NeumorphCardView as pressed container for input #76

Open
AlexKnyazyuk opened this issue Mar 4, 2021 · 0 comments
Open

NeumorphCardView as pressed container for input #76

AlexKnyazyuk opened this issue Mar 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@AlexKnyazyuk
Copy link

Good day.
I'm trying to use your library, and by our design, we need to use the pressed state for the input fields. But for some reason on the device one of the corners looks very strange, there is a big gap in the darkening. Can you help me with this? Or how to fix it somehow.

Screenshot_1614851204

My xml

<soup.neumorphism.NeumorphCardView
                android:id="@+id/passwordInputLayoutCard"
                style="@style/Widget.Neumorph.CardView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:neumorph_lightSource="leftTop"
                app:neumorph_shadowColorDark="@color/solid_dark_color"
                app:neumorph_shadowColorLight="@color/solid_light_color"
                app:neumorph_shadowElevation="1dp"
                app:neumorph_shapeAppearance="@style/NeumorphRoundedShapeAppearance"
                app:neumorph_shapeType="pressed">
                ...
    <style name="NeumorphRoundedShapeAppearance">
        <item name="neumorph_cornerFamily">rounded</item>
        <item name="neumorph_cornerSize">32dp</item>
    </style>
@AlexKnyazyuk AlexKnyazyuk added the bug Something isn't working label Mar 4, 2021
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

1 participant