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

Shadow corners are sharp edges #101

Open
MoatazMohamedd opened this issue Mar 15, 2022 · 1 comment
Open

Shadow corners are sharp edges #101

MoatazMohamedd opened this issue Mar 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@MoatazMohamedd
Copy link

I'm trying to use this button but the edges are being sharply cut like this:

gg

<soup.neumorphism.NeumorphButton
           android:id="@+id/materialButton"
           style="@style/Widget.Neumorph.Button"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_marginTop="24dp"
           android:background="@color/background"
           android:gravity="center"
           android:text="Test Button"
           android:textColor="@color/white"
           app:layout_constraintStart_toStartOf="@+id/textView3"
           app:layout_constraintTop_toBottomOf="@+id/te
           app:neumorph_shadowColorDark="@color/black"
           app:neumorph_shadowColorLight="@color/white"
           app:neumorph_shadowElevation="1.5dp"
           app:neumorph_shapeAppearance="@style/CustomShapeAppearance"
           app:neumorph_shapeType="flat">

Version used:
Pixel4 API 30

@MoatazMohamedd MoatazMohamedd added the bug Something isn't working label Mar 15, 2022
@Fly-Felix
Copy link

在父布局添加 android:clipToPadding="false"属性

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

2 participants