Search code examples
androidtoggletogglebuttonandroid-togglebutton

how to make toggle with 3 selection in android?


My question is very simple. Is there any way to make a toggle button which will provide user to select 3 options like ON,OFF,NEUTRAL?

I search a lot, but other options are there like use spinner but I wanna customize toggle button. Any idea how to achieve that?

Thanks a lot in advance & for you valuable time


Solution

  • You can try this third party library, it has more than two selectors and I think that it satisfies your requirement.

    https://github.com/jlhonora/multistatetogglebutton

    Regards!