leandroBorgesFerreira / LoadingButtonAndroid

A button to substitute the ProgressDialog
MIT License
1.94k stars 214 forks source link

Cannot set default background color #174

Closed HosseinArabbeigi closed 3 years ago

HosseinArabbeigi commented 3 years ago

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"/>
Dave181295 commented 3 years ago

Got the same issue

leandroBorgesFerreira commented 3 years ago

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

HosseinArabbeigi commented 3 years ago

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.

leandroBorgesFerreira commented 3 years ago

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