I want to create a custom switch control.

It's custom because I want to support Android min version: 2.2

Is there any native control I can inherit from?

Seekbar?

I want it to be like a toggleButton, but with the ability to both:

(1) move on single click

(2) be dragged right or left