This is a library project with a custom view that implements "open & close" function same as
A material Switch with icon animations and color transitions.
A custom view with animation when CheckBox status is changed.
CoolSwitch is a custom view for Android with an awesome reveal animation.
SwitchPreferenceCompat allows to use
SwitchCompat as preference.
If you have a need to implement a UI component which will act similar to toggle button or be like a view group with state checked/unchecked this is a right choice for you.
Android programmatically checkable widgets.
Give your collections (on any View at all) a fancier look by adding a cool way to check elements. If your list can multi-select elements, you can add this component as a "status indicator". This is basically a customizable view flipper, with a "front" and "rear" faces, and an "accept" image in the "rear" that will animate changes in its state, mostly like the GMail app.