Answer the question
In order to leave comments, you need to log in
Is it possible to represent the shapes drawn in the surfaceView as objects, and attach an event handler to them?
Is it possible to make a lot of shapes (let's say squares) in a SurfaceView as buttons in an activity, where the object's attributes will set their location, click handlers, etc.?
Answer the question
In order to leave comments, you need to log in
if you are writing a game, you have chosen the wrong tool, SurfaceView is not designed for this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question