Project Introduction: In order to test the player's agility, the game requires that the bug disappears before it is gone and rises to a new level, and the worm moves faster, losing a life at the point, and directing the loss of life.
1) android:hardwareaccelerated= "true"
http://blog.csdn.net/janronehoo/article/details/7517284 from Android3.0 (API level11), Android's 2D display pipeline has been designed to support hard acceleration. Hard acceleration uses the GPU to take on all the drawing operations performed on the view's canvas. 2) Spot.setlayoutparams (New Relativelayout.layoutparams (Spot_diameter, Spot_diameter));//Set ImageView width and height for SPOT
3)
Spot.animate (). x (x2). Y (y2). ScaleX (scale_x). ScaleY (scale_y). Setduration (animationtime). Setlistener//The final X sitting target// Ultimate Y-seat//final width (percentage of original width)//final height (% of original width)//continuous time//listener Code Link: Http://yunpan.cn/cfTRXSEUzZgde (Extract code: D05B)
Android for Programmers:an app-driven Approach Learning notes (a) Spoton