Exercises

1. Modify LayoutAnimationController to apply animations of each child view within a TableRow control in random order by using the setOrder() method with a value of 2 (random).

2. Modify LayoutAnimationController to apply animations to each child view within a TableLayout control instead of each TableRow control. View the resulting animation.

3. Modify the splash screen layout to play a short video instead of animating the ImageView controls. First replace the TableLayout control with a VideoView control. Then set the URI of VideoView to the URL of a web video in the appropriate format, using the Uri.parse() method and the VideoView control's setVideoURI() method. Finally, remove AnimationListener and use a VideoView control's OnCompletionListener instead to transition to the main menu screen when the video completes.

This page intentionally left blank

0 0

Post a comment