Android draw using SurfaceView and Thread
问题 I am trying to draw a ball to my screen using 3 classes. I have read a little about this and I found a code snippet that works using the 3 classes on one page, Playing with graphics in Android I altered the code so that I have a ball that is moving and shifts direction when hitting the wall like the picture below (this is using the code in the link) . Now I like to separate the classes into 3 different pages for not making everything so crowded, everything is set up the same way. Here are the