-1

I want to create custom Toggle button with animation and I need it to be circle. How can I create toggle circle button with animation?

Also I do not know how to make custom button!

Do you have any suggestion?

1 Answers1

0

Add this in your build.gradle

dependencies {
    compile 'me.rishabhkhanna:CustomToggle:1.0.0'
}

and use this instead of ToggleButton

<me.rishabhkhanna.customtogglebutton.CustomToggleButton
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:textOn="toggle button"
    android:textOff="toggle button"
    ></me.rishabhkhanna.customtogglebutton.CustomToggleButton>

here's the link of the website

Kevin Kurien
  • 812
  • 6
  • 14