Refactor the code and fix bugs

add
setchecked
setthumbSize
seticonsize
setrippleBoundsRadius
setrippleSpeed
setValue
setText
setTextColor
setIcon
setIconDrawable