继承CompoundButton实现Switch