I have used Pointer.Listener and Mouse.Listener with ImageLayer and it worked. But when I use Pointer.Listener to a GroupLayer, It doesnt listens the clicks or touches. How can I do this?
I am using the following code.
myGroupLayer.addListener(new Pointer.Listener() {
@Override
public void onPointerEnd(Event event) {
System.out.println("click registered");
myMethodToRun();
}
@Override
public void onPointerDrag(Event event) { }
@Override
public void onPointerStart(Event event) { }
});