O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ball

The ball is the other sprite component. It works just like the ImageSprite except that it doesn’t contain a picture. A ball will always be a circle of a single color. You can adjust the paint color and the radius of the ball. Otherwise, a ball is exactly the same as an ImageSprite. You can even specify whether a ball rotates, and its motion will behave accordingly, although you won’t see a visual difference (a ball looks the same, regardless of its rotation).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required