leandroBorgesFerreira/LoadingButtonAndroid

Cannot set default background color

Closed this issue · 4 comments

I need to set default background color, but button loses the corner angles:

<br.com.simplepass.loadingbutton.customViews.CircularProgressButton
        android:id="@+id/home_connect_bt"
        android:layout_width="@dimen/_50sdp"
        android:layout_height="@dimen/_50sdp"
        android:textSize="18sp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="@id/home_title_tv"
        android:background="@color/red_1"/>

Got the same issue

Hello hello. Did you set the desired corner angle? I don't see it in your XML. If you don't set it, it will be a rectangle, just like you described. Take a look in the configurations: app:initialCornerAngle

Thanks @leandroBorgesFerreira for your response, sorry in above code I forgot to add corners radius but I had the problem and finally implemented the view without using library.

Oh ok. Good to see that this is no longer a problem. I'll close it then.