fornewid / neumorphism

Try to Neumorphism in Android (Just experimental!! 🧪)
https://medium.com/@fornewid/neumorphism-in-android-9cf15e2122dc
Apache License 2.0
977 stars 159 forks source link

NeumorphCardView as pressed container for input #76

Open AlexKnyazyuk opened 3 years ago

AlexKnyazyuk commented 3 years ago

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>