It would be nice if you add support for creating the BallView programmtically. You should add getters and setters for all the custom attributes (numberOfBalls, ballSize, minBallSize, maxBallSize, .....).
Otherwise I have to implement AttributSet just available as an interface.