Hello,
I am developing a drawing tool on the android platform. It is basically a View that includes different paths and draws (shows) these. Now I'm trying to add a listener to the paths so that one can touch a path and change it's color.
I was thinking about wrapping each path in its own view. My main view would then exists of different views that each have exactly one path.
The problem is that I can't find the way to do this.
My code has now one view that contains all the paths (so they are not "touchable").
Suggestions for other strategies are appreciated.
I am developing a drawing tool on the android platform. It is basically a View that includes different paths and draws (shows) these. Now I'm trying to add a listener to the paths so that one can touch a path and change it's color.
I was thinking about wrapping each path in its own view. My main view would then exists of different views that each have exactly one path.
The problem is that I can't find the way to do this.
My code has now one view that contains all the paths (so they are not "touchable").
Suggestions for other strategies are appreciated.