1 / 32

Android Multithreading and Animation Exploration

This chapter explores threads, handlers, and programmatic movement in Android applications. It covers ANR dialogs, thread basics, final project structure, layout design, digital stopwatch, linear animation, bouncing ball animation, art in motion animation, virtual pet fish, and AsyncTask experiment.

Download Presentation

Android Multithreading and Animation Exploration

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 6 Threads, Handlers, and Programmatic Movement

  2. Figure 06.01: An ANR (Application Not Responding) dialogue displayed to the user

  3. Figure 06.02: Thread Basics application shows a simple counter running in a separate thread

  4. Figure 06.03: Final Project structure for the application

  5. Figure 06.04: The layout design shown in the Graphical Layout Editor

  6. Figure 06.05: An application for a digital stopwatch

  7. Figure 06.06: Project structure for the Stop Watch application

  8. Figure 06.07: The layout structure for activity_my.xml

  9. Figure 06.08: Linear animation using onDraw()

  10. Figure 06.09: Project structure for the Animated Dial application

  11. Figure 06.10: The angle of the rotating dial will be incremented after each delay

  12. Figure 06.11: The SurfaceView object is positioned behind the window of the application

  13. Figure 06.12: Bouncing Ball animation uses a SurfaceView

  14. Figure 06.13: Project Structure for the Bouncing Ball application

  15. Figure 06.14: Animation elements

  16. Figure 06.15: activity_my.xml contains a FrameLayout named frameLayout

  17. Figure 06.16: Ball boundaries used for collision detection

  18. Figure 06.17

  19. Figure 06.18: An Art “Letter” is created as spherical objects are “eased” into a target position

  20. Figure 06.19: A spherical object is eased into a target position

  21. Figure 06.20: Project structure for Art in Motion animation

  22. Figure 06.21: The layout structure for activity_my.xml

  23. Figure 06.22: The x, y position of spheres on a grid are used to form the letter B

  24. Figure 06.23: The Virtual Pet Fish application

  25. Figure 06.24: Final Project structure for the Virtual Fish application

  26. Figure 06.25: The layout design shown in the Graphical Layout Editor

  27. Figure 06.26: The image of a fish is stored as an XML layout

  28. Figure 06.27: The graphic of foliage is represented as an XML file

  29. Figure 06.28: mDirection refers to the direction a Fish object faces

  30. Figure 06.29: An AsyncTask experiment application

  31. Figure 06.30: Project structure for the AsyncTask Exploration application

  32. Figure 06.31: The layout structure for activity_my.xml

More Related