January 2012
Intermediate to advanced
282 pages
7h 4m
English
There aren't that many applications currently using RenderScript. Since a picture is worth a thousand words, let's see examples of where RenderScript is used. Perhaps the most popular example is the YouTube application and its carousel view, as shown in Figure 9–1. For clarity, the screenshot was taken when the videos were not loaded yet, and you can see what each rectangle looks like (each rectangle would then contain a video thumbnail). Another example, Balls, is available as sample code in the Android SDK and uses sensors' information and physic to compute the position of the balls on the screen, as shown in Figure 9–2.
Figure ...