I found a solution by myself.
I just called the the onTouchEvent from a main activity that implements onTouchListener. and I overridden onTouch method like this.
@Override
public boolean onTouch(View v, MotionEvent event) {
SurfaceViewSubClass1.onTouchEvent(event);
SurfaceViewSubClass2.onTouchEvent(event);
return true;
}
with setting setOnTouchListener(this);
to my foreground SurfaceView subclass SurfaceViewSubClass1
in the onCreate()
.