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

0.10.0 version changed the look of my button #223

Open
anonym24 opened this issue Nov 21, 2022 · 1 comment
Open

0.10.0 version changed the look of my button #223

anonym24 opened this issue Nov 21, 2022 · 1 comment

Comments

@anonym24
Copy link

Before I had implementation 'com.ncorti:slidetoact:0.9.0' and the button looked like this

image

I upgraded to 'com.ncorti:slidetoact:0.10.0' and now it looks like this

image

What has been changed? :)

<style name="Theme.MyApp.SlideButton" parent="">
    <item name="android:layout_width">0dp</item>
    <item name="android:layout_height">wrap_content</item>
    <item name="area_margin">0dp</item>
    <item name="border_radius">8dp</item>
    <item name="inner_color">@color/white</item>
    <item name="outer_color">@color/colorSlideButtonOuterColor</item>
    <item name="rotate_icon">false</item>
    <item name="slider_height">48dp</item>
    <item name="slider_icon">@drawable/ic_slide_arrow</item>
    <item name="slider_icon_color">@color/colorSlideButtonIconColor</item>
    <item name="text">Accept</item>
    <item name="text_appearance">@style/Theme.MyApp.TextAppearance.SlideButton</item>
    <item name="text_size">16sp</item>
    <item name="animation_duration">0</item>
</style>

<style name="Theme.MyApp.TextAppearance.SlideButton" parent="Widget.AppCompat.TextView">
    <item name="android:fontFamily">@font/inter_medium_500</item>
    <item name="android:textSize">16sp</item>
    <item name="android:textColor">@color/colorTextOnLight</item>
</style>
@cortinico
Copy link
Owner

It seems like a bug with the border_radius. Are you able to reproduce on the sample app of this library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants