This is for learning purpose. I have a small block that should respond to touch. IF i touch top of the screen it should move forward and right if i touch the right side of the screen.Could someone help me with the code and also what topic should i read to learn about this.
Share
What part are you having trouble with, detecting where someone touched, drawing an object or moving an object?
Regardless I would start with some Android tutorials that walk you through creating an app with an object on it, once you have done that the rest should become obvious–it’s just getting started that’s hard.
Detect touch: How do I detect touch input on the Android
Moving Ojbects: http://obviam.net/index.php/moving-images-on-the-screen-with-androi/