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

NeumorphButton Wont Draw properly #107

Open
LidorPrototype opened this issue May 29, 2022 · 2 comments
Open

NeumorphButton Wont Draw properly #107

LidorPrototype opened this issue May 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@LidorPrototype
Copy link

Version used: latest
Devices/Android versions reproduced on: Galaxy 10+, Pixel 3, Pixel 3+

I'm trying to do a NeumorphButton on a RelativeLayout that is in another RelativeLayout but it does not draw it correctly at all...

<soup.neumorphism.NeumorphButton
            android:id="@+id/button_login_or_register_alert"
            android:layout_width="200sp"
            android:layout_height="100sp"
            android:text="@string/login_or_register"
            android:textColor="@color/neu_text_color"
            android:layout_centerInParent="true"
            android:textAllCaps="false" />

image

@LidorPrototype LidorPrototype added the bug Something isn't working label May 29, 2022
@Fenias-Manhenge
Copy link

HI @LidorPrototype, I could be wrong, but first, try not to use "sp" for layout_width and height, instead use "dp" which is recommended in most cases, sp use just for text...
second, try to apply these two lines to your code...
1- style
2- neumorph_shapetype
Neumorphism

@LidorPrototype
Copy link
Author

Hey, sadly still the same problem is happening...

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