Pretty Little Things
It's important that an app performs its functions well, but it's also important that users like it and want to use it. Learn how to spruce up the visual aspects of the Crystal Ball app by using images, animations, View customizations, and sounds.
6 videos • 1 quiz • 4 code challenges
-
Play
Preview
Adding an Image
7 minutes 50 seconds
-
ABC
Preview
Quiz: Adding an Image
8 questions
-
Play
Preview
Customizing Buttons and Labels
6 minutes 31 seconds
-
Play
Preview
Positioning Text Using a Linear Layout
7 minutes 6 seconds
-
Code Challenge
Preview
Code Challenge: Layouts: Colors, Sizes, and Weights
3 objectives
-
Play
Preview
Animating the Crystal Ball
10 minutes 6 seconds
-
Code Challenge
Preview
Code Challenge: Animating the Crystal Ball
4 objectives
-
Play
Preview
Animating the Answer
7 minutes 52 seconds
-
Code Challenge
Preview
Code Challenge: Animating the Answer
3 objectives
-
Play
Preview
Adding Sounds
6 minutes 51 seconds
-
Code Challenge
Preview
Code Challenge: Adding Sounds
2 objectives
Fancy Animation
See if you can create some of the animations Mike used in his Crazy Crystal Ball app from the "Animating the Crystal Ball" video. Try out TranslateAnimation and ScaleAnimation on an image you add to the layout as an ImageView.
Both of these types of animation use the same Animation base class and methods.
Sample code:
Animation translateAnim = new TranslateAnimation(0, 320, 0, 0);
// Set as 1 second
translateAnim.setDuration(1000);
// Repeat indefinitely
translateAnim.setRepeatCount(Animation.INFINITE);
// Reverse animation each time
translateAnim.setRepeatMode(Animation.REVERSE);
newImageView.startAnimation(translationAnim);