I have a problem with a custom button. onDraw() gets called again and again, and I can\'t figure out why.
public class CircleButton extends Button { static
Change the drawableStateChanged() method:
drawableStateChanged()
invalidate
super.drawableStateChanged()