Week 6 内容:
1. Graphics. In this lecture we'll look at how Android apps can draw and move visual elements on the display.
2. Touch and Gestures. In Android, users often interact with an app by touching and moving visual elements. In this lecture, we'll discuss how apps receive and process touch input. In addition, we'll look at how apps can create and process complex sets of touches, called gestures. You may have already seen common gestures such as pinching to zoom.
3. Multimedia. In this lecture we'll cover a number of classes for capturing and playing audio and video streams.
Week 6 需上传:
Weekly Quiz.
As always, we have a quiz this week.
Lab.
This week's Lab leverages each of the three lectures. You'll create an application that displays animated soap bubbles that float across the display. When the user touches an empty space on the screen the app will create a new Bubble, which will then move across screen. If the user simply touches a Bubble that's already on the screen, the Bubble will "pop." It will be removed from the screen and a popping sound effect will play. Finally, if the user touches a Bubble on the screen and executes a "fling" gesture, the Bubble will change its speed and direction based on the speed and direction of the fling gesture.