medyo / Fancybuttons

Icons, Borders, Radius ... for Android buttons
1.77k stars 397 forks source link

ripple effect doesn't work #128

Open IvanKnyaziev opened 5 years ago

IvanKnyaziev commented 5 years ago

Took example from samples but it has no ripple effect. Am I missing something? <mehdi.sakout.fancybuttons.FancyButton android:id="@+id/btn_instagram" android:layout_width="64dp" android:layout_height="64dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginBottom="8dp" android:padding="10dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/btnAmbientVibes" fancy:fb_defaultColor="#3f729b" fancy:fb_focusColor="#313131" fancy:fb_iconPaddingLeft="0dp" fancy:fb_iconPaddingRight="0dp" fancy:fb_iconResource="@drawable/instagram" fancy:fb_radius="64dp"/>

codeaskush commented 5 years ago

implementation 'com.github.medyo:fancybuttons:1.8.4' use this version instead of 1.9.0 this worked for me

null-dev commented 4 years ago

Setting android:clickable="true" worked for me.

roman-ku commented 1 year ago

Setting a focus color worked for me: fancy:fb_focusColor="@color/white"